Skip to content

Commit 8ba7082

Browse files
committed
refactor(api/web): use asset from CMS instead of local asset for cuHacking logo
1 parent 0082113 commit 8ba7082

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libs/website/layouts/base.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ReactNode } from 'react'
2-
import cuHackingLogo from '@cuhacking/shared/assets/logos/cuHacking/cuhacking-logo-1.svg'
32
import { useLoaderData } from '@remix-run/react'
43
import {
54
FOOTER_CONSTANTS,
@@ -9,12 +8,12 @@ import {
98
} from '@website/shared/ui/navigation'
109

1110
export function Layout({ children }: { children: ReactNode }) {
12-
const { header } = useLoaderData<{ header: { links: { id: string, name: string, link: string }[] } }>()
11+
const { header } = useLoaderData<{ header: { logo: { url: string }, links: { id: string, name: string, link: string }[] } }>()
1312

1413
return (
1514
<>
1615
<NavbarContainer
17-
logo={cuHackingLogo}
16+
logo={header.logo.url}
1817
links={header.links.map(({ id, ...rest }) => rest)}
1918
socials={NAVBAR_CONSTANTS.SOCIALS}
2019
hamburger={NAVBAR_CONSTANTS.HAMBURGER}

0 commit comments

Comments
 (0)