switch layout dropdown and layout store

This commit is contained in:
spencerwooo
2022-02-04 22:20:53 +08:00
parent ed17eb2a32
commit c66c61bfee
4 changed files with 68 additions and 2 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ import Navbar from '../components/Navbar'
import FileListing from '../components/FileListing'
import Footer from '../components/Footer'
import Breadcrumb from '../components/Breadcrumb'
import { SwitchLayout } from '../components/SwitchLayout'
export default function Folders() {
const { query } = useRouter()
@@ -19,8 +20,9 @@ export default function Folders() {
<main className="flex w-full flex-1 flex-col bg-gray-50 dark:bg-gray-800">
<Navbar />
<div className="mx-auto w-full max-w-5xl p-4">
<nav className="mb-4 flex items-center px-2">
<nav className="mb-4 flex items-center justify-between pl-1 space-x-3">
<Breadcrumb query={query} />
<SwitchLayout />
</nav>
<FileListing query={query} />
</div>