Skip to content

Commit

Permalink
chore: Update team_themes types (#259)
Browse files Browse the repository at this point in the history
## What does this PR do?
- Updates types to reflect changes implemented in
theopensystemslab/planx-new#2646
- Exports `Team` types
  • Loading branch information
DafyddLlyr authored Jan 12, 2024
1 parent 23a327c commit 4589660
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/requests/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ async function getBySlug(client: GraphQLClient, slug: string) {
settings
theme {
primaryColour: primary_colour
secondaryColour: secondary_colour
actionColour: action_colour
linkColour: link_colour
logo
favicon
}
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ export * from "./result";
export * from "./roles";
export * from "./sections";
export * from "./session";
export * from "./team";
export * from "./user";
10 changes: 6 additions & 4 deletions src/types/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ export interface Team {
}

export interface TeamTheme {
primaryColour?: string;
secondaryColour?: string;
logo?: string;
favicon?: string;
primaryColour: string;
actionColour: string;
linkColour: string;
logo: string | null;
favicon: string | null;
}

export interface TeamSettings {
Expand All @@ -28,6 +29,7 @@ export interface TeamSettings {
};
supportEmail?: string;
boundary?: string;
hasPlanningData?: boolean;
}

export interface NotifyPersonalisation {
Expand Down

0 comments on commit 4589660

Please sign in to comment.