diff --git a/packages/dashboard/src/components/Layout.js b/packages/dashboard/src/components/Layout.js index dbb75c6d..31c1feae 100644 --- a/packages/dashboard/src/components/Layout.js +++ b/packages/dashboard/src/components/Layout.js @@ -1,4 +1,5 @@ import Link from "next/link"; +import { useRouter } from "next/router"; import Head from "next/head"; import { useState } from "react"; import config from "../../src/config"; @@ -8,6 +9,7 @@ const signOutUrl = `${config.kratos.browser}/self-service/browser/flows/logout`; export default function Layout({ title, children }) { const [menuOpen, openMenu] = useState(false); const [avatarDropdownOpen, openAvatarDropdown] = useState(false); + const router = useRouter(); return (