feat/BOOK-755 alert content pages
* feat(BOOK-755): Added alert block on Collection pages * feat(BOOK-755): Added alert block on Content pages * feat(BOOK-755): Added alert functionality for RTE Approved-by: Bianca Widstam
This commit is contained in:
35
packages/trpc/lib/graphql/Fragments/Blocks/Alert.graphql.ts
Normal file
35
packages/trpc/lib/graphql/Fragments/Blocks/Alert.graphql.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Alert } from "../Alert.graphql"
|
||||
|
||||
export const Alert_ContentPage = gql`
|
||||
fragment Alert_ContentPage on ContentPageBlocksAlert {
|
||||
__typename
|
||||
alert {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...Alert
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${Alert}
|
||||
`
|
||||
|
||||
export const Alert_CollectionPage = gql`
|
||||
fragment Alert_CollectionPage on CollectionPageBlocksAlert {
|
||||
__typename
|
||||
alert {
|
||||
alertConnection {
|
||||
edges {
|
||||
node {
|
||||
...Alert
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
${Alert}
|
||||
`
|
||||
@@ -1,5 +1,6 @@
|
||||
import { gql } from "graphql-tag"
|
||||
|
||||
import { Alert } from "../Alert.graphql"
|
||||
import { ImageContainer } from "../ImageContainer.graphql"
|
||||
import { AccountPageLink } from "../PageLink/AccountPageLink.graphql"
|
||||
import { CampaignOverviewPageLink } from "../PageLink/CampaignOverviewPageLink.graphql"
|
||||
@@ -24,6 +25,7 @@ export const Content_ContentPage = gql`
|
||||
node {
|
||||
__typename
|
||||
...SysAsset
|
||||
...Alert
|
||||
...ImageContainer
|
||||
...AccountPageLink
|
||||
...CampaignOverviewPageLink
|
||||
@@ -45,6 +47,7 @@ export const Content_ContentPage = gql`
|
||||
}
|
||||
}
|
||||
${SysAsset}
|
||||
${Alert}
|
||||
${ImageContainer}
|
||||
${AccountPageLink}
|
||||
${CampaignOverviewPageLink}
|
||||
|
||||
Reference in New Issue
Block a user