fix: show correct label variant based on setting

This commit is contained in:
Jordan Knott 2020-07-16 21:57:20 -05:00
parent d3f29134e0
commit 810e74e99f

View File

@ -253,7 +253,7 @@ const Project = () => {
path={`${match.path}/board`} path={`${match.path}/board`}
render={() => ( render={() => (
<Board <Board
cardLabelVariant={value === 'small' ? 'large' : 'small'} cardLabelVariant={value === 'small' ? 'small' : 'large'}
onCardLabelClick={() => { onCardLabelClick={() => {
const variant = value === 'small' ? 'large' : 'small'; const variant = value === 'small' ? 'large' : 'small';
setValue(() => variant); setValue(() => variant);