Moving main ThemeContext.Provider into Theme module. Using live elapsed timers on Downloads page.

This commit is contained in:
Roland 2022-09-28 09:38:05 -06:00
parent 854cdf597a
commit fdfd1e98fc
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
9 changed files with 163 additions and 91 deletions

View file

@ -36,7 +36,7 @@ import {CardPlacholder} from "./Placeholder";
import {ArchiveCard} from "./Archive";
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
import {ThemeContext} from "../contexts/contexts";
import {Button, Icon, Placeholder, Segment, Table} from "./Theme";
import {Button, Header, Icon, Placeholder, Segment, Table} from "./Theme";
const icons = {
File: <Icon name='file'/>,
@ -209,7 +209,7 @@ export function FileCards({files}) {
{files.map((i) => <FileCard key={i['path']} file={i}/>)}
</CardGroupCentered>
} else if (files && files.length === 0) {
return <p>No files found.</p>
return <Header as='h4'>No files found.</Header>
} else {
return <CardGroupCentered><CardPlacholder/></CardGroupCentered>
}