mirror of
https://github.com/chinchang/web-maker.git
synced 2025-08-01 03:00:09 +02:00
ui a11y improvements
This commit is contained in:
@@ -2,6 +2,9 @@ import { h } from 'preact';
|
||||
import { getExtensionFromFileName } from '../fileUtils';
|
||||
|
||||
export function FileIcon({ file }) {
|
||||
if (!file) {
|
||||
return null;
|
||||
}
|
||||
let path;
|
||||
if (file.isFolder) {
|
||||
if (!file.children.length) {
|
||||
|
Reference in New Issue
Block a user