Skip to content

Commit

Permalink
chore: update seed with types
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Jun 25, 2024
1 parent e638a48 commit 7a1a9f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 2 additions & 5 deletions apps/studio/prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
}
Expand Down
8 changes: 6 additions & 2 deletions apps/studio/src/server/modules/resource/resource.types.ts
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down

0 comments on commit 7a1a9f1

Please sign in to comment.