Fixes global chat color setting

This commit is contained in:
Josh Perez
2021-06-02 17:05:09 -04:00
committed by GitHub
parent a6ce00ff37
commit bd46e3afd6
14 changed files with 250 additions and 122 deletions

View File

@@ -11,12 +11,15 @@ import { SmartChatColorPicker } from './ChatColorPicker';
import { ConversationColorType } from '../../types/Colors';
function renderChatColorPicker({
setAllConversationColors,
setGlobalDefaultConversationColor,
}: {
setAllConversationColors: (color: ConversationColorType) => unknown;
setGlobalDefaultConversationColor: (color: ConversationColorType) => unknown;
}): JSX.Element {
return (
<SmartChatColorPicker isInModal onSelectColor={setAllConversationColors} />
<SmartChatColorPicker
isGlobal
onSelectColor={setGlobalDefaultConversationColor}
/>
);
}