Skip to content

Commit bce61b2

Browse files
authored
Merge pull request #968 from Vijaydaswani/fix/icon-theme-property
feat: add theme property to Icon and Prompt types
2 parents 2056622 + 1e1b9e3 commit bce61b2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/src/components/IconDisplay.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ interface Icon {
33
src: string;
44
mimeType?: string;
55
sizes?: string[];
6+
theme?: "light" | "dark";
67
}
78

89
// Helper type for objects that may have icons

client/src/components/PromptsTab.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ export type Prompt = {
2424
description?: string;
2525
required?: boolean;
2626
}[];
27-
icons?: { src: string; mimeType?: string; sizes?: string[] }[];
27+
icons?: {
28+
src: string;
29+
mimeType?: string;
30+
sizes?: string[];
31+
theme?: "light" | "dark";
32+
}[];
2833
};
2934

3035
const PromptsTab = ({

0 commit comments

Comments
 (0)