diff --git a/web/modals/threads/color-selector.react.js b/web/modals/threads/color-selector.react.js --- a/web/modals/threads/color-selector.react.js +++ b/web/modals/threads/color-selector.react.js @@ -14,60 +14,20 @@ function ColorSelector(props: ColorSelectorProps): React.Node { const { currentThreadColor, onColorSelection } = props; - return ( -
- - - - - - - - - - -
+ const colorSelectorButtons = React.useMemo( + () => + selectedThreadColors.map(color => ( + + )), + [currentThreadColor, onColorSelection], ); + + return
{colorSelectorButtons}
; } export default ColorSelector;