This commit is contained in:
mgabdev
2020-05-03 01:22:49 -04:00
parent 196a906cec
commit 055b5a430f
85 changed files with 1110 additions and 1051 deletions

View File

@@ -31,13 +31,13 @@ export default class Heading extends PureComponent {
}
render() {
const { children, size, center } = this.props
const { children, size, isCentered } = this.props
// Each size has it's own custom style
const classes = cx({
default: 1,
text: 1,
textAlignCenter: center,
textAlignCenter: isCentered,
colorPrimary: [SIZES.h1, SIZES.h2].indexOf(size) > -1,
colorSecondary: [SIZES.h3, SIZES.h4, SIZES.h5].indexOf(size) > -1,