diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js --- a/lib/shared/thread-utils.js +++ b/lib/shared/thread-utils.js @@ -95,7 +95,9 @@ '575757': 10, }; -const selectedThreadColors = Object.keys(selectedThreadColorsObj); +const selectedThreadColors: $ReadOnlyArray = Object.keys( + selectedThreadColorsObj, +); export type SelectedThreadColors = $Keys; function generateRandomColor(): string { @@ -1420,4 +1422,5 @@ removeMemberFromThread, switchMemberAdminRoleInThread, getAvailableThreadMemberActions, + selectedThreadColors, }; 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 @@ -2,6 +2,8 @@ import * as React from 'react'; +import { selectedThreadColors } from 'lib/shared/thread-utils'; + import ColorSelectorButton from './color-selector-button.react'; import css from './color-selector.css'; @@ -16,54 +18,54 @@