Rewrite web front-end using React
This is a big commit, some font-end function are still working, including manage, error handle, as others.
This commit is contained in:
26
web/src/component/FilesTable.js
Normal file
26
web/src/component/FilesTable.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import FileEntry from "./FileEntry";
|
||||
|
||||
function FilesTable(props) {
|
||||
return (
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Filename</th>
|
||||
<th>Folder Name</th>
|
||||
<th>Size</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{props.files.map((file) => (
|
||||
<FileEntry
|
||||
setPlayingFile={props.setPlayingFile}
|
||||
key={file.id}
|
||||
file={file}
|
||||
/>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
}
|
||||
|
||||
export default FilesTable;
|
||||
Reference in New Issue
Block a user