Compare commits

...

2 Commits

Author SHA1 Message Date
Abdullah Atta
f8e3d40634 web: fix unstyled "0" in theme details dialog 2023-08-09 11:28:47 +05:00
Abdullah Atta
6bfe309f2f web: fix error on installing theme from file 2023-08-09 11:28:06 +05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -184,7 +184,7 @@ function ThemesList() {
previewColors: getPreviewColors(theme)
})
) {
setTheme(theme);
setCurrentTheme(theme);
}
}}
sx={{

View File

@@ -63,11 +63,11 @@ function ThemeDetailsDialog(props: ThemeDetailsDialogProps) {
<Text variant="subBody" sx={{ fontSize: "subtitle" }}>
{theme.authors.map((author) => author.name).join(", ")}
</Text>
{theme.totalInstalls && (
{theme.totalInstalls && theme.totalInstalls > 0 ? (
<Text variant="subBody" sx={{ fontSize: "subtitle" }}>
{theme.totalInstalls} installs
</Text>
)}
) : null}
<Text variant="subBody" sx={{ fontSize: "subtitle" }}>
Licensed under {theme.license}
</Text>