-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added streamer component to channels drawer
- Loading branch information
1 parent
cc6ec9c
commit 6f8c06e
Showing
3 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { makeStyles } from '@material-ui/core/styles'; | ||
import { Avatar, ListItem, ListItemIcon, ListItemText } from '@material-ui/core'; | ||
import { deepOrange } from '@material-ui/core/colors'; | ||
|
||
const useStyles = makeStyles((theme) => ({ | ||
root: { | ||
display: 'flex', | ||
'& > *': { | ||
margin: theme.spacing(1), | ||
}, | ||
}, | ||
orange: { | ||
color: theme.palette.getContrastText(deepOrange[500]), | ||
backgroundColor: deepOrange[500], | ||
width: theme.spacing(3), | ||
height: theme.spacing(3), | ||
}, | ||
})); | ||
|
||
export default function Streamer(props) { | ||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.root}> | ||
<ListItem button> | ||
<ListItemIcon> | ||
<Avatar className={classes.orange}>DH</Avatar> | ||
</ListItemIcon> | ||
<ListItemText primary={props.name}></ListItemText> | ||
</ListItem> | ||
</div> | ||
); | ||
} | ||
|
||
Streamer.propTypes = { | ||
name: PropTypes.string, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Streamer from './Streamer.jsx'; | ||
|
||
export default Streamer; |