diff --git a/src/app/translation/[project]/[language]/Listing.tsx b/src/app/translation/[project]/[language]/Listing.tsx index a4b3cb4..c5f21a7 100644 --- a/src/app/translation/[project]/[language]/Listing.tsx +++ b/src/app/translation/[project]/[language]/Listing.tsx @@ -2,7 +2,7 @@ import clsx from "clsx"; import React from "react"; import Link from 'next/link'; -import { Anchor, Box, Group, LoadingOverlay, NavLink, Table, Text, rem } from "@mantine/core"; +import { Anchor, AppShell, Box, Group, LoadingOverlay, NavLink, Table, Text, rem } from "@mantine/core"; import { IconListSearch } from "@tabler/icons-react"; import { LanguageContext } from "@/providers/LanguageProvider"; import { LayoutCommon } from "@/components/LayoutCommon"; @@ -22,13 +22,13 @@ const NavigationItem = ({ id, name, entries }: { id: string, name: string, entri const Navigation = ({ children }: { children: React.ReactNode }) => { return ( - + Table of contents {children} - + ); } diff --git a/src/components/LayoutCommon.tsx b/src/components/LayoutCommon.tsx index a0096fe..d1ac0ca 100644 --- a/src/components/LayoutCommon.tsx +++ b/src/components/LayoutCommon.tsx @@ -1,14 +1,26 @@ 'use client'; -import { AppShell, Container } from "@mantine/core" +import { AppShell, Burger, Container, Group } from "@mantine/core" import { Header } from "./Header" +import { useDisclosure } from "@mantine/hooks"; export const LayoutCommon = ({ navigation, ref, children }: { navigation?: React.ReactNode, ref?: React.RefObject, children: React.ReactNode }) => { + const [opened, { toggle }] = useDisclosure(); + return ( - + -
+ + {navigation !== undefined && } +
+ - {navigation !== undefined && + {navigation !== undefined && {navigation} }