summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'packages/desktop/src/ui')
-rw-r--r--packages/desktop/src/ui/file-icon.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/desktop/src/ui/file-icon.tsx b/packages/desktop/src/ui/file-icon.tsx
index d31a741e0..53b3c1e69 100644
--- a/packages/desktop/src/ui/file-icon.tsx
+++ b/packages/desktop/src/ui/file-icon.tsx
@@ -9,12 +9,13 @@ export type FileIconProps = JSX.GSVGAttributes<SVGSVGElement> & {
}
export const FileIcon: Component<FileIconProps> = (props) => {
- const [local, rest] = splitProps(props, ["node", "class", "expanded"])
+ const [local, rest] = splitProps(props, ["node", "class", "classList", "expanded"])
const name = createMemo(() => chooseIconName(local.node.path, local.node.type, local.expanded || false))
return (
<svg
{...rest}
classList={{
+ ...(local.classList ?? {}),
"shrink-0 size-4": true,
[local.class ?? ""]: !!local.class,
}}