Fixes global chat color setting
This commit is contained in:
parent
a6ce00ff37
commit
bd46e3afd6
14 changed files with 250 additions and 122 deletions
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue