diff --git a/src/resultsview.js b/src/resultsview.js index b9905d8..be9e765 100644 --- a/src/resultsview.js +++ b/src/resultsview.js @@ -5,6 +5,9 @@ import Box from '@material-ui/core/Box'; import ImportContactsIcon from '@material-ui/icons/ImportContacts'; import Button from '@material-ui/core/Button'; import LabelIcon from '@material-ui/icons/Label'; +import AppBar from '@material-ui/core/AppBar'; +import Tabs from '@material-ui/core/Tabs'; +import Tab from '@material-ui/core/Tab'; import { GridGallery } from './gridgallery.js'; @@ -90,21 +93,57 @@ export function ImagesView(props) { return ; } +function TabPanel(props) { + const { children, activeIndex, myIndex } = props; + + return ( + <> + {activeIndex === myIndex && {children}} + + ); +} + export function ResultsView(props) { const classes = useStyles(); const { photos, albums, tags } = props; + const [ activeIndex, setActiveIndex ] = React.useState(0); + + var _ = require('lodash'); + + function tabProps(index) { + return { + id: _.uniqueId("tab_"), + }; + } + + const handleChange = (e, newindex) => { + setActiveIndex(newindex); + } return ( - - - - - - - - - - - - ) +
+ + + + + + + + + + + + + + + + + + + + + + +
+ ); } \ No newline at end of file