Newer
Older
import { withStyles } from "@material-ui/core/styles";
import Toolbar from "@src/js/components/database/data-browser/Toolbar.jsx";
import ListView from "@src/js/components/database/data-browser/ListView.jsx";
import GalleryView from "@src/js/components/database/data-browser/GalleryView.jsx";
const styles = theme => ({
containerDefault: {
padding: `${theme.spacing(1)}px ${theme.spacing(2)}px`
},
containerSquare: {
padding: `${theme.spacing(2)}px ${theme.spacing(2)}px`
},
boundary: {
padding: theme.spacing(1),
borderWidth: '2px',
borderStyle: 'solid',
borderColor: theme.palette.border.secondary,
backgroundColor: theme.palette.background.paper
},
})
class DataBrowser extends React.Component {
render() {
{view === "list" ? <ListView/> : null}
{view === "gallery" ? <GalleryView/> : null}