Use turbopack for dev builds. Remove graphql-tag/loader, replaced by gql`` tag literals instead. Approved-by: Linus Flood
40 lines
742 B
TypeScript
40 lines
742 B
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
export const ListItem = gql`
|
|
fragment ListItem on CurrentBlocksPageBlocksListBlockListItemsListItem {
|
|
list_item {
|
|
list_item_style
|
|
subtitle
|
|
title
|
|
}
|
|
}
|
|
`
|
|
|
|
export const ListItemExternalLink = gql`
|
|
fragment ListItemExternalLink on CurrentBlocksPageBlocksListBlockListItemsListItemExternalLink {
|
|
list_item_external_link {
|
|
link {
|
|
href
|
|
title
|
|
}
|
|
list_item_style
|
|
subtitle
|
|
}
|
|
}
|
|
`
|
|
|
|
export const ListBlock = gql`
|
|
fragment ListBlock on CurrentBlocksPageBlocksList {
|
|
list {
|
|
list_items {
|
|
__typename
|
|
...ListItem
|
|
...ListItemExternalLink
|
|
}
|
|
title
|
|
}
|
|
}
|
|
${ListItem}
|
|
${ListItemExternalLink}
|
|
`
|