fix build errors in formbricks-com

This commit is contained in:
Matthias Nannt
2023-04-14 15:53:00 +02:00
parent da998d9820
commit 9e1a17a3ef
31 changed files with 175 additions and 296 deletions
@@ -84,7 +84,6 @@ interface LayoutProps {
export function Layout({ children, meta }: LayoutProps) {
let router = useRouter();
let isHomePage = router.pathname === "/";
let allLinks = navigation.flatMap((section) => section.links);
let linkIndex = allLinks.findIndex((link) => link.href === router.pathname);
let previousPage = allLinks[linkIndex - 1];