tambah aduan sampah
This commit is contained in:
@@ -329,8 +329,12 @@ function ListApiKey() {
|
||||
{new Date(apiKey.expiredAt).toLocaleDateString()}
|
||||
</Badge>
|
||||
</Table.Td>
|
||||
<Table.Td>{new Date(apiKey.createdAt).toLocaleDateString()}</Table.Td>
|
||||
<Table.Td>{new Date(apiKey.updatedAt).toLocaleDateString()}</Table.Td>
|
||||
<Table.Td>
|
||||
{new Date(apiKey.createdAt).toLocaleDateString()}
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
{new Date(apiKey.updatedAt).toLocaleDateString()}
|
||||
</Table.Td>
|
||||
<Table.Td>
|
||||
<Group gap="xs" justify="center">
|
||||
<Tooltip label="Copy API Key">
|
||||
|
||||
@@ -69,7 +69,8 @@ function CredentialCreate() {
|
||||
showNotification({
|
||||
color: "teal",
|
||||
title: "Credential Saved",
|
||||
message: data?.message || "Your credential has been successfully added.",
|
||||
message:
|
||||
data?.message || "Your credential has been successfully added.",
|
||||
});
|
||||
reloadState();
|
||||
} catch {
|
||||
@@ -164,7 +165,7 @@ function CredentialCreate() {
|
||||
|
||||
function CredentialList() {
|
||||
const { data, mutate, isLoading } = useSwr("/", () =>
|
||||
apiFetch.api.credential.list.get()
|
||||
apiFetch.api.credential.list.get(),
|
||||
);
|
||||
|
||||
useShallowEffect(() => {
|
||||
@@ -263,9 +264,7 @@ function CredentialList() {
|
||||
(e.currentTarget.style.boxShadow =
|
||||
"0 0 10px rgba(0,255,200,0.2)")
|
||||
}
|
||||
onMouseLeave={(e) =>
|
||||
(e.currentTarget.style.boxShadow = "none")
|
||||
}
|
||||
onMouseLeave={(e) => (e.currentTarget.style.boxShadow = "none")}
|
||||
>
|
||||
<Flex align="center" justify="space-between">
|
||||
<Stack gap={2}>
|
||||
|
||||
@@ -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