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 { currentColor, onColorSelection } = props; - return ( -
- - - - - - - - - - -
+ const colorSelectorButtons = React.useMemo( + () => + selectedThreadColors.map(color => ( + + )), + [currentColor, onColorSelection], ); + + return
{colorSelectorButtons}
; } export default ColorSelector;