Skip to content
Snippets Groups Projects
Commit ab1537da authored by Chris Garrity's avatar Chris Garrity
Browse files

Use classNames instead of ternary

Use the classNames feature to include/exclude a class based on a boolean instead of ternary operator
parent 043e31a4
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,9 @@ class LibraryItemComponent extends React.PureComponent {
) : (
<Box
className={classNames(
styles.libraryItem,
this.props.hidden ? styles.hidden : null
styles.libraryItem, {
[styles.hidden]: this.props.hidden
}
)}
role="button"
tabIndex="0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment