Created
March 11, 2020 16:10
-
-
Save thovden/689b3f08c84066b8a92b1e4383f1606f to your computer and use it in GitHub Desktop.
JSS
This file contains hidden or 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
const useStyles = makeStyles(() => ({ | |
root: { | |
overflowY: 'auto', | |
flex: 1, | |
maxHeight: '400px', | |
} | |
})) | |
const TodoList: FC<TodoProps> = props => { | |
const { className, items = [], title = 'Todo', onUpdate } = props | |
const classes = useStyles(props) | |
return ( | |
<div className={classNames(className, classes.root)}> | |
... | |
</div> | |
) | |
} | |
export default TodoList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment