Skip to content

Commit

Permalink
use next/Image for better bandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
SatapasT committed Jul 8, 2024
1 parent daff46c commit bd6d798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/hacker/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useRouter } from "next/navigation";
import ButtonModal from "@/app/components/ButtonModal";
import useUser from "@/app/lib/useUser";
import useSWR from "swr";
import Image from "next/image";
const Scanner = dynamic(() => import("qrcode-scanner-react"), {
ssr: false,
});
Expand Down Expand Up @@ -85,7 +86,7 @@ export default function HackerHome() {
type="image/svg+xml"
className="w-12"
>
<img
<Image
src={`/${team?.megateam_name}/icon.png`}
alt={`${team?.megateam_name} Logo`}
/>
Expand Down

0 comments on commit bd6d798

Please sign in to comment.