This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@
|
||||
"nav": {
|
||||
"label1": "Home",
|
||||
"label2": "Example",
|
||||
"label3": "Home 2"
|
||||
"label3": "Doc"
|
||||
},
|
||||
"home": {
|
||||
"name": "Iceberg Server",
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
"nav": {
|
||||
"label1": "Accueil",
|
||||
"label2": "Exemple",
|
||||
"label3": "Accueil 2"
|
||||
"label3": "Doc"
|
||||
},
|
||||
"home": {
|
||||
"name": "Iceberg Server",
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
// 'use client'
|
||||
|
||||
// import { useEffect, useState } from 'react'
|
||||
|
||||
// export default function AboutPage() {
|
||||
// const [data, setData] = useState<any>(null)
|
||||
// const [loading, setLoading] = useState(true)
|
||||
|
||||
// useEffect(() => {
|
||||
// fetch((process.env.NEXT_PUBLIC_API_URL as string) + "/docs.json")
|
||||
// .then((res) => res.json())
|
||||
// .then((result) => {
|
||||
// setData(result)
|
||||
// setLoading(false)
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.error(err)
|
||||
// setLoading(false)
|
||||
// })
|
||||
// }, [])
|
||||
|
||||
// return (
|
||||
// <div className="p-6">
|
||||
// <h1>About</h1>
|
||||
|
||||
// {loading && <p>Loading...</p>}
|
||||
|
||||
// {!loading && data && (
|
||||
// <pre>{JSON.stringify(data, null, 2)}</pre>
|
||||
// )}
|
||||
// </div>
|
||||
// )
|
||||
// }
|
||||
@@ -1,8 +0,0 @@
|
||||
export default function AboutPage() {
|
||||
return (
|
||||
<div className="p-6">
|
||||
<h1>About</h1>
|
||||
<p>This is an example</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ export default function Navbar() {
|
||||
const links = [
|
||||
{ to: '/', label: t('label1') },
|
||||
{ to: '/example', label: t('label2') },
|
||||
{ to: '/3', label: t('label3') },
|
||||
{ to: '/doc', label: t('label3') },
|
||||
];
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user