diff --git a/src/frontend/src/components/StreamTabPanel/StreamTabPanel.jsx b/src/frontend/src/components/StreamTabPanel/StreamTabPanel.jsx new file mode 100644 index 0000000000..e5607d5564 --- /dev/null +++ b/src/frontend/src/components/StreamTabPanel/StreamTabPanel.jsx @@ -0,0 +1,83 @@ +import React from 'react'; +import PropTypes from 'prop-types'; +import { makeStyles } from '@material-ui/core/styles'; +import Tabs from '@material-ui/core/Tabs'; +import Tab from '@material-ui/core/Tab'; +import Typography from '@material-ui/core/Typography'; +import Box from '@material-ui/core/Box'; +import VideocamIcon from '@material-ui/icons/Videocam'; +import ChatIcon from '@material-ui/icons/Chat'; + +function TabPanel(props) { + const { children, value, index, ...other } = props; + + return ( + + ); +} + +TabPanel.propTypes = { + children: PropTypes.node, + index: PropTypes.any.isRequired, + value: PropTypes.any.isRequired, +}; + +function a11yProps(index) { + return { + id: `vertical-tab-${index}`, + 'aria-controls': `vertical-tabpanel-${index}`, + }; +} + +const useStyles = makeStyles((theme) => ({ + root: { + display: 'flex', + backgroundColor: theme.palette.background.paper, + }, + tabs: { + borderLeft: `1px solid ${theme.palette.divider}`, + width: '40px', + }, +})); + +export default function StreamTabPanel() { + const classes = useStyles(); + const [value, setValue] = React.useState(0); + + const handleChange = (event, newValue) => { + setValue(newValue); + }; + + return ( +
+ + Videos + + + Chat + + + } {...a11yProps(0)} /> + } {...a11yProps(1)} /> + +
+ ); +} diff --git a/src/frontend/src/components/StreamTabPanel/index.js b/src/frontend/src/components/StreamTabPanel/index.js new file mode 100644 index 0000000000..95d4650135 --- /dev/null +++ b/src/frontend/src/components/StreamTabPanel/index.js @@ -0,0 +1,3 @@ +import StreamTabPanel from './StreamTabPanel.jsx'; + +export default StreamTabPanel; diff --git a/src/frontend/src/components/StreamsPage/StreamsPage.jsx b/src/frontend/src/components/StreamsPage/StreamsPage.jsx index 63a071812a..3cf1bf106c 100644 --- a/src/frontend/src/components/StreamsPage/StreamsPage.jsx +++ b/src/frontend/src/components/StreamsPage/StreamsPage.jsx @@ -1,9 +1,10 @@ import React from 'react'; import ReactPlayer from 'react-player'; import { makeStyles } from '@material-ui/core/styles'; -import { Container, Grid, Paper } from '@material-ui/core'; +import { Container, Grid } from '@material-ui/core'; import ChannelsDrawer from '../ChannelsDrawer'; +import StreamTabPanel from '../StreamTabPanel'; const useStyles = makeStyles((theme) => ({ root: { @@ -30,9 +31,11 @@ export default function StreamsPage() { return (
- - - + + + + + - - xs=12 sm=6 + +