mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
switch locale component
This commit is contained in:
+4
-4
@@ -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'])),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user