mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: update frontend dependencies
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user