Fixes global chat color setting
This commit is contained in:
parent
a6ce00ff37
commit
bd46e3afd6
14 changed files with 250 additions and 122 deletions
|
@ -10,9 +10,11 @@ type PropsType = {
|
|||
i18n: LocalizerType;
|
||||
isChatColorEditorVisible: boolean;
|
||||
renderChatColorPicker: (actions: {
|
||||
setAllConversationColors: (color: ConversationColorType) => unknown;
|
||||
setGlobalDefaultConversationColor: (
|
||||
color: ConversationColorType
|
||||
) => unknown;
|
||||
}) => JSX.Element;
|
||||
setAllConversationColors: (color: ConversationColorType) => unknown;
|
||||
setGlobalDefaultConversationColor: (color: ConversationColorType) => unknown;
|
||||
toggleChatColorEditor: () => unknown;
|
||||
};
|
||||
|
||||
|
@ -20,7 +22,7 @@ export const GlobalModalContainer = ({
|
|||
i18n,
|
||||
isChatColorEditorVisible,
|
||||
renderChatColorPicker,
|
||||
setAllConversationColors,
|
||||
setGlobalDefaultConversationColor,
|
||||
toggleChatColorEditor,
|
||||
}: PropsType): JSX.Element | null => {
|
||||
if (isChatColorEditorVisible) {
|
||||
|
@ -34,7 +36,7 @@ export const GlobalModalContainer = ({
|
|||
title={i18n('ChatColorPicker__global-chat-color')}
|
||||
>
|
||||
{renderChatColorPicker({
|
||||
setAllConversationColors,
|
||||
setGlobalDefaultConversationColor,
|
||||
})}
|
||||
</Modal>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue