fixed hydration error when changing theme and added dynamic default avatar

This commit is contained in:
Polaris
2024-07-24 23:25:01 -04:00
parent 8df0064100
commit 0a2eac63b6
7 changed files with 171 additions and 86 deletions

View File

@ -16,7 +16,7 @@ import { getAuth } from "@/auth/queries/getauth";
import NavigationMenuDesktop from "./desktopNavBar";
import NavigationMenuMobile from "./mobileNavBar";
import { signOut } from "@/auth/components/signout";
import { ModeToggle } from "../darkmode";
import DarkToggle from "../darkmode";
const HeaderNavigation = async () => {
const { user } = await getAuth();
@ -51,7 +51,7 @@ const HeaderNavigation = async () => {
/>
</div>
</form>
<ModeToggle />
<DarkToggle />
<DropdownMenu>
<DropdownMenuTrigger asChild>