Skip to content

Commit

Permalink
feat: favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 committed Nov 13, 2024
1 parent 03dbf55 commit 0102015
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 22 deletions.
Binary file modified client/bun.lockb
Binary file not shown.
Binary file added client/src/app/favicon.ico
Binary file not shown.
10 changes: 0 additions & 10 deletions client/src/app/favicon.svg

This file was deleted.

3 changes: 0 additions & 3 deletions client/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
return (
//? FIX: https://github.com/shadcn-ui/ui/issues/1906#issuecomment-1807426212
<html lang="en" suppressHydrationWarning>
<head>
<link rel="icon" href="/favicon.svg" sizes='any' />
</head>
<body className={`${geistSans.variable} ${geistMono.variable}`}>
<NextSSRPlugin routerConfig={extractRouterConfig(fileRouter)} />
<ReactQueryprovider>
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export default function manifest(): MetadataRoute.Manifest {
theme_color: '#000000',
icons: [
{
src: '/favicon.svg',
src: '/favicon.ico',
sizes: '192x192',
type: 'image/svg'
type: 'image/ico'
}
]
}
Expand Down
Binary file removed client/src/app/vercel/favicon.ico
Binary file not shown.
9 changes: 5 additions & 4 deletions client/src/components/Menubar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ interface MenubarProps {

const Menubar = ({ className }: MenubarProps) => {
const pathname = usePathname()
const notificationCount = 100
return (
<aside className={cn('text-primary', className)}>
<Button
Expand All @@ -30,15 +29,17 @@ const Menubar = ({ className }: MenubarProps) => {
</Link>
</Button>
<Button
className="relative flex items-center justify-start gap-3 ring-primary"
className="flex items-center justify-start gap-3 ring-primary"
variant="ghost"
title="Notifications"
asChild
>
<Link href="/notifications">
<BellRing />
<div className="relative">
<BellRing />
<div className="absolute -right-1 -top-1 flex h-2.5 w-2.5 items-center justify-center rounded-full bg-destructive text-xs" />
</div>
<span className="hidden lg:inline">Notifications</span>
<div className="absolute right-2.5 top-1 flex h-2.5 w-2.5 items-center justify-center rounded-full bg-destructive text-xs" />
</Link>
</Button>
<Button
Expand Down
4 changes: 1 addition & 3 deletions client/src/components/TrendsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ const getTrendingTopics = unstable_cache(
}))
},
['trending_topics'],
{
revalidate: 3 * 60 * 60 // 3 hrs
}
{ revalidate: 60 * 60 * 3 } // 3 hrs
)

const TrendingTopics = async () => {
Expand Down

1 comment on commit 0102015

@vercel
Copy link

@vercel vercel bot commented on 0102015 Nov 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.