feat(ThemePreview): update to follow blob format

This commit is contained in:
SethBurkart123
2024-10-05 20:17:31 +10:00
parent 33e34a0552
commit 818ff48a0d
7 changed files with 86 additions and 91 deletions
+2 -13
View File
@@ -16,12 +16,12 @@ export type CustomTheme = {
}
export type LoadedCustomTheme = CustomTheme & {
CustomImages: Array<{
CustomImages: {
id: string;
blob: Blob;
variableName: string;
url: string | null;
}>;
}[];
coverImageUrl?: string;
};
@@ -35,17 +35,6 @@ export type CustomImage = {
variableName: string;
}
export type CustomImageBase64 = {
id: string;
url: string;
variableName: string;
}
export type CustomThemeBase64 = Omit<CustomTheme, 'CustomImages'> & {
CustomImages: CustomImageBase64[];
coverImage: string | null;
}
export type ThemeList = {
themes: CustomTheme[];
selectedTheme: string;