diff --git a/apps/studio/prisma/seed.ts b/apps/studio/prisma/seed.ts index 979a952d16..0448dc183f 100644 --- a/apps/studio/prisma/seed.ts +++ b/apps/studio/prisma/seed.ts @@ -3,6 +3,7 @@ * * @link https://www.prisma.io/docs/guides/database/seed-database */ +import { type IsomerSitemap } from '@opengovsg/isomer-components' import { type SiteConfig } from '~/server/modules/site/site.types' import { type Navbar, @@ -86,11 +87,7 @@ async function main() { .insertInto('Navbar') .values({ siteId: id, - content: { - name: 'navi', - url: 'www.isomer.gov.sg', - items: NAV_BAR_ITEMS, - } satisfies Navbar, + content: { items: NAV_BAR_ITEMS } satisfies Navbar, }) .execute() } diff --git a/apps/studio/src/server/modules/resource/resource.types.ts b/apps/studio/src/server/modules/resource/resource.types.ts index 13194fa037..6e716271e5 100644 --- a/apps/studio/src/server/modules/resource/resource.types.ts +++ b/apps/studio/src/server/modules/resource/resource.types.ts @@ -1,5 +1,9 @@ -export interface NavbarItem { - name: string +import { type IsomerSiteProps } from '@opengovsg/isomer-components' + +export type Navbar = { items: IsomerSiteProps['navBarItems'] } + +export interface FooterItem { + title: string url: string description?: string }