Skip to content

Commit 1c23449

Browse files
authored
Merge pull request #370 from prezly/feature/dev-20069-allow-favoriting-of-theme-styling-page
[DEV-20069] Expose `active_theme` in NewsroomRef
2 parents ee1f29e + 5108ea2 commit 1c23449

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/types/Newsroom.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { UploadedImage } from '@prezly/uploads';
22

33
import type { CultureRef } from './Culture';
4+
import type { NewroomThemeRef } from './NewsroomTheme';
45

56
export interface NewsroomRef {
67
uuid: string;
@@ -71,6 +72,7 @@ export interface NewsroomRef {
7172
privacy_settings: string;
7273
widget_settings: string;
7374
};
75+
active_theme?: NewroomThemeRef | null;
7476
}
7577

7678
export interface Newsroom extends NewsroomRef {

src/types/NewsroomTheme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export interface NewsroomTheme {
1616
status: NewsroomTheme.Status;
1717
}
1818

19+
export type NewroomThemeRef = Pick<NewsroomTheme, 'id' | 'codename' | 'name'>;
20+
1921
export namespace NewsroomTheme {
2022
export enum Status {
2123
BETA = 'beta',

0 commit comments

Comments
 (0)