Hide files/folders table if not need

This commit is contained in:
2021-12-11 00:03:07 +08:00
parent fdd41397bf
commit 1d49689171
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
import FileEntry from "./FileEntry";
function FilesTable(props) {
if (props.files.length === 0) {
return null;
}
return (
<table>
<thead>