- {this.state.currentSubmenuOpen === 'fontSizeList'
+ {currentSubmenuOpen === 'fontSizeList'
? (
@@ -388,12 +500,13 @@ class WhiteboardToolbar extends Component {
}
renderFontItemIcon() {
+ const { fontSizeSelected, colorSelected } = this.state;
return (
- {this.state.currentSubmenuOpen === 'thicknessList'
+ {currentSubmenuOpen === 'thicknessList'
? (
@@ -437,6 +561,13 @@ class WhiteboardToolbar extends Component {
}
renderThicknessItemIcon() {
+ const {
+ colorSelected,
+ thicknessSelected,
+ prevThicknessSelected,
+ prevColorSelected,
+ } = this.state;
+
return (