tambah aduan sampah
This commit is contained in:
@@ -28,7 +28,10 @@ import {
|
||||
} from "@tabler/icons-react";
|
||||
import type { User } from "generated/prisma";
|
||||
import { Outlet, useLocation, useNavigate } from "react-router-dom";
|
||||
import { default as clientRoute, default as clientRoutes } from "@/clientRoutes";
|
||||
import {
|
||||
default as clientRoute,
|
||||
default as clientRoutes,
|
||||
} from "@/clientRoutes";
|
||||
import apiFetch from "@/lib/apiFetch";
|
||||
|
||||
function Logout() {
|
||||
@@ -254,7 +257,9 @@ function NavigationDashboard() {
|
||||
</Flex>
|
||||
}
|
||||
description={item.description}
|
||||
onClick={() => navigate(clientRoutes[item.path as keyof typeof clientRoute])}
|
||||
onClick={() =>
|
||||
navigate(clientRoutes[item.path as keyof typeof clientRoute])
|
||||
}
|
||||
style={{
|
||||
backgroundColor: isActive(item.path as keyof typeof clientRoute)
|
||||
? "rgba(0,255,200,0.1)"
|
||||
|
||||
Reference in New Issue
Block a user