switch locale component

This commit is contained in:
spencerwooo
2022-02-08 23:30:12 +08:00
parent d47939059b
commit 45f6158e7d
8 changed files with 98 additions and 16 deletions
+4 -4
View File
@@ -7,7 +7,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'
import SwitchLayout from '../components/SwitchLayout'
export default function Folders() {
const { query } = useRouter()
@@ -21,7 +21,7 @@ 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 justify-between pl-1 space-x-3">
<nav className="mb-4 flex items-center justify-between space-x-3 pl-1">
<Breadcrumb query={query} />
<SwitchLayout />
</nav>
@@ -37,7 +37,7 @@ export default function Folders() {
export async function getServerSideProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale, ['common']))
}
...(await serverSideTranslations(locale, ['common'])),
},
}
}