refactor: change Image Optimization to custom url

This commit is contained in:
Kentai Radiquum 2024-08-23 04:51:47 +05:00
parent 61e8b74d11
commit ff11a90a5e
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
11 changed files with 100 additions and 28 deletions

View file

@ -11,6 +11,7 @@ import {
ToggleSwitch,
} from "flowbite-react";
import { useState } from "react";
import Image from "next/image";
export const Navbar = () => {
const pathname = usePathname();
@ -110,10 +111,12 @@ export const Navbar = () => {
</nav>
{userStore.isAuth ? (
<div className="flex flex-col items-center justify-end text-sm lg:gap-1 lg:justify-center lg:flex-row lg:text-base">
<img
<Image
src={userStore.user.avatar}
alt=""
className="w-6 h-6 rounded-full"
width={24}
height={24}
/>
<Dropdown
label={userStore.user.login}