forked from politics-rewired/Spoke
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
24 changed files
with
12 additions
and
773 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
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,60 +1,10 @@ | ||
import type { | ||
Notice, | ||
Pending10DlcCampaignNotice, | ||
Pricing10DlcNotice, | ||
PricingTollFreeNotice, | ||
Register10DlcBrandNotice, | ||
Register10DlcCampaignNotice, | ||
TitleContentNotice | ||
} from "@spoke/spoke-codegen"; | ||
import type { Notice, TitleContentNotice } from "@spoke/spoke-codegen"; | ||
import type { GraphQLType } from "graphql"; | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export function isTitleContentNotice(obj: Notice): obj is TitleContentNotice { | ||
return ( | ||
(obj as TitleContentNotice & GraphQLType).__typename === | ||
"TitleContentNotice" | ||
); | ||
} | ||
|
||
export function isRegister10DlcBrandNotice( | ||
obj: Notice | ||
): obj is Register10DlcBrandNotice { | ||
return ( | ||
(obj as Register10DlcBrandNotice & GraphQLType).__typename === | ||
"Register10DlcBrandNotice" | ||
); | ||
} | ||
|
||
export function isRegister10DlcCampaignNotice( | ||
obj: Notice | ||
): obj is Register10DlcCampaignNotice { | ||
return ( | ||
(obj as Register10DlcCampaignNotice & GraphQLType).__typename === | ||
"Register10DlcCampaignNotice" | ||
); | ||
} | ||
|
||
export function isPending10DlcCampaignNotice( | ||
obj: Notice | ||
): obj is Pending10DlcCampaignNotice { | ||
return ( | ||
(obj as Pending10DlcCampaignNotice & GraphQLType).__typename === | ||
"Pending10DlcCampaignNotice" | ||
); | ||
} | ||
|
||
export function isPricing10DlcNotice(obj: Notice): obj is Pricing10DlcNotice { | ||
return ( | ||
(obj as Pricing10DlcNotice & GraphQLType).__typename === | ||
"Pricing10DlcNotice" | ||
); | ||
} | ||
|
||
export function isPricingTollFreeNotice( | ||
obj: Notice | ||
): obj is PricingTollFreeNotice { | ||
return ( | ||
(obj as PricingTollFreeNotice & GraphQLType).__typename === | ||
"PricingTollFreeNotice" | ||
); | ||
} |
27 changes: 0 additions & 27 deletions
27
src/components/NoticeText/BrandRegistration10DlcNoticeText.tsx
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
src/components/NoticeText/CampaignRegistration10DlcNoticeText.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/components/NoticeText/Pending10DlcCampaignNoticeText.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
23 changes: 0 additions & 23 deletions
23
src/containers/AdminDashboard/components/Pending10DlcCampaignNoticeCard.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.