added spectre css

This commit is contained in:
2021-07-27 19:24:52 +02:00
parent 2aea95c6ab
commit abbcaf9166
9 changed files with 93 additions and 37 deletions

View File

@@ -12,7 +12,7 @@ interface Props {
const FileBrowserElement: React.FC<Props> = (props) => {
return (
<div onClick={()=>{
<tr onClick={()=>{
if(props.file){
props.onClick?.(props.file)
}else if(props.dir){
@@ -20,7 +20,7 @@ const FileBrowserElement: React.FC<Props> = (props) => {
}
}}>
{(props.file) ? <FileElement file={props.file}/>:(props.dir)?<DirectoryComponent dir={props.dir} />:<></>}
</div>
</tr>
)
}