1
0
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:
Kushagra Gour
2019-03-02 19:15:38 +05:30
parent 30afda75f3
commit 3f19013bb4
7 changed files with 65 additions and 45 deletions

View File

@@ -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) {