Last active
December 11, 2022 18:14
-
-
Save TylerLH/89357ebbada2b7e1d1a148453c1cc4cc to your computer and use it in GitHub Desktop.
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 styles = theme => ({ | |
container: {}, | |
input: {}, | |
}) | |
export default styles |
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
import React from 'react' | |
import baseStyle from './baseStyle' | |
const styles = theme => ({ | |
...baseStyle, | |
bar: { | |
width: theme.spacing.unit * 3 | |
} | |
}) | |
const ComponentA = ({ classes }) => <div className={classes.container}></div> | |
export default withStyles(styles)(ComponentA) |
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
import React from 'react' | |
import baseStyle from './baseStyle' | |
const styles = theme => ({ | |
...baseStyle, | |
foo: { | |
height: theme.spacing.unit * 6 | |
} | |
}) | |
const ComponentB = ({ classes }) => <div className={classes.container}></div> | |
export default withStyles(styles)(ComponentB) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment