Skip to content

Commit b87ab66

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update DashHome.jsx
Co-Authored-By: JehanKandy <jehankandy@gmail.com> Co-Authored-By: Anupa Gamage <125038143+Anupa1998@users.noreply.github.com>
1 parent f4e707e commit b87ab66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/components/Dashboard/DashHome.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const DashHome = () => {
2828
{id: 5, name: "Selected Books", bgstyle: 'bg-red-400/20', borderStyle: 'border-red-500', icon: <BsJournalX />, value: <CountUp end={20} />, style: "text-red-500"},
2929
{id: 6, name: "My Books", bgstyle: 'bg-green-400/20', borderStyle: 'border-green-500', icon: <BsJournals />, value: <CountUp end={20} />, style: "text-green-500"},
3030
{id: 7, name: "My Selected Books", bgstyle: 'bg-blue-400/20', borderStyle: 'border-blue-500', icon: <BsJournalX />, value: <CountUp end={20} />, style: "text-blue-500"},
31-
{id: 7, name: "My Borrowed Books", bgstyle: 'bg-yellow-400/20', borderStyle: 'border-yellow-500', icon: <BsJournalCheck />, value: <CountUp end={20} />, style: "text-yellow-500"},
31+
{id: 8, name: "My Borrowed Books", bgstyle: 'bg-yellow-400/20', borderStyle: 'border-yellow-500', icon: <BsJournalCheck />, value: <CountUp end={20} />, style: "text-yellow-500"},
3232
]
3333

3434
if(RoleUser !== null && EmailUser !== null){
@@ -40,7 +40,7 @@ const DashHome = () => {
4040
{
4141
DashData.map((data) => {
4242
if(RoleUser === "SuperAdmin" || RoleUser === "Director" || RoleUser === "Secretary"){
43-
if(data.id !== 6){
43+
if(data.id !== 6 && data.id !== 7 && data.id !== 8){
4444
return(
4545
<div className={`md:my-0 my-2 ${data.bgstyle} text-white px-4 py-8 rounded border-l-4 shadow-lg shadow-red ${data.borderStyle}`}>
4646
<div className="flex justify-between">

0 commit comments

Comments
 (0)