-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
354a5cf
commit 21f5481
Showing
4 changed files
with
125 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { gql } from "@apollo/client"; | ||
|
||
export const OrgBannerFragment = gql` | ||
fragment OrgBannerFragment on OrgBanner { | ||
export const OrgAssetFragment = gql` | ||
fragment OrgAssetFragment on OrgAsset { | ||
id | ||
orgId | ||
purpose | ||
mediaType | ||
slug | ||
additionalData { | ||
command | ||
position | ||
} | ||
publicUrl | ||
cdnUrl | ||
removedAt | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { gql } from "@apollo/client"; | ||
import { OrgBannerFragment } from "graphql/fragments/orgAsset"; | ||
import { OrgAssetFragment } from "graphql/fragments/orgAsset"; | ||
|
||
export const GET_ORG_BANNERS = gql` | ||
query getOrgBanners($orgId: ID!) { | ||
getOrgBanners(orgId: $orgId) { | ||
...OrgBannerFragment | ||
export const GET_ORG_CUSTOM_ASSETS = gql` | ||
query getOrgCustomAssets($orgId: ID!) { | ||
getOrgCustomAssets(orgId: $orgId) { | ||
...OrgAssetFragment | ||
} | ||
} | ||
${OrgBannerFragment} | ||
${OrgAssetFragment} | ||
`; |