chore: update frontend dependencies

This commit is contained in:
Steven
2024-01-27 17:28:06 +08:00
parent 10d709c167
commit ed32b20c9e
55 changed files with 482 additions and 563 deletions

View File

@ -35,9 +35,12 @@ const Navigation = (props: Props) => {
inboxStore.fetchInboxes();
// Fetch inboxes every 5 minutes.
const timer = setInterval(async () => {
await inboxStore.fetchInboxes();
}, 1000 * 60 * 5);
const timer = setInterval(
async () => {
await inboxStore.fetchInboxes();
},
1000 * 60 * 5,
);
return () => {
clearInterval(timer);
@ -120,7 +123,7 @@ const Navigation = (props: Props) => {
<header
className={classNames(
"w-full h-full overflow-auto flex flex-col justify-start items-start py-4 md:pt-6 z-30 hide-scrollbar",
className
className,
)}
>
<UserBanner collapsed={collapsed} />
@ -131,7 +134,7 @@ const Navigation = (props: Props) => {
classNames(
"px-2 py-2 rounded-2xl border flex flex-row items-center text-lg text-gray-800 dark:text-gray-300 hover:bg-white hover:border-gray-200 dark:hover:border-zinc-700 dark:hover:bg-zinc-800",
collapsed ? "" : "w-full px-4",
isActive ? "bg-white drop-shadow-sm dark:bg-zinc-800 border-gray-200 dark:border-zinc-700" : "border-transparent"
isActive ? "bg-white drop-shadow-sm dark:bg-zinc-800 border-gray-200 dark:border-zinc-700" : "border-transparent",
)
}
key={navLink.id}