Skip to content

Commit 64fa396

Browse files
committed
add footer in the layout
1 parent 1f10305 commit 64fa396

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

app/[locale]/(user)/layout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
'use client';
22

33
import React from 'react';
4+
import Image from 'next/image';
5+
import Link from 'next/link';
46
import { notFound, usePathname } from 'next/navigation';
7+
import { Icon, Text } from 'opub-ui';
58

9+
import { Icons } from '@/components/icons';
10+
import MainFooter from '../dashboard/components/main-footer';
611
import { MainNav } from '../dashboard/components/main-nav';
712

813
interface UserLayoutProps {
@@ -29,6 +34,9 @@ export default function Layout({ children }: UserLayoutProps) {
2934
<MainNav hideSearch={hideSearch} />
3035
</header>
3136
<>{children}</>
37+
<footer>
38+
<MainFooter />
39+
</footer>
3240
</div>
3341
);
3442
}

app/[locale]/dashboard/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import React from 'react';
44

5+
import MainFooter from './components/main-footer';
56
import { MainNav } from './components/main-nav';
67

78
interface DashboardLayoutProps {
@@ -20,6 +21,9 @@ export default function Layout({ children }: DashboardLayoutProps) {
2021
<MainNav />
2122
</header>
2223
<>{children}</>
24+
<footer>
25+
<MainFooter />
26+
</footer>
2327
</div>
2428
);
2529
}

0 commit comments

Comments
 (0)