Skip to content

Commit

Permalink
Update image
Browse files Browse the repository at this point in the history
  • Loading branch information
dnhn committed Dec 16, 2024
1 parent 1f82838 commit 89ce6f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/src/app/api/geolocation/route.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { geolocation } from '@vercel/functions';
import { handleApiError } from '@/app/api/auth';
import { geolocation } from '@vercel/functions';

export async function GET(request: Request) {
try {
Expand Down
20 changes: 18 additions & 2 deletions website/src/components/navbar/navbar-client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,15 @@ const MobileNavigation = ({
</NavbarLink>
<div className="flex-inline flex items-center">
{country ? (
<Image src={getFlagImageURL(country)} width={24} height={24} alt="" className="mx-3 rounded-full" />
<Image
src={getFlagImageURL(country)}
width={24}
height={24}
alt=""
priority
unoptimized
className="mx-3 rounded-full"
/>
) : (
Flag && <Flag className="mx-3 h-6 w-6 rounded-full" />
)}
Expand Down Expand Up @@ -347,7 +355,15 @@ const DesktopNavigation = ({
<div className="group/i18n flex h-full flex-1 shrink-0 basis-1/4 flex-col">
<div className="flex flex-row items-baseline justify-end">
{country ? (
<Image src={getFlagImageURL(country)} width={20} height={20} alt="" className="m-auto mx-2 rounded-full" />
<Image
src={getFlagImageURL(country)}
width={20}
height={20}
alt=""
priority
unoptimized
className="m-auto mx-2 rounded-full"
/>
) : (
Flag && <Flag className="m-auto mx-2 h-5 w-5 rounded-full" />
)}
Expand Down

0 comments on commit 89ce6f0

Please sign in to comment.