Selects custom color when created
This commit is contained in:
parent
6d82acd23c
commit
53d6065c00
8 changed files with 158 additions and 79 deletions
|
@ -8,19 +8,9 @@ import { GlobalModalContainer } from '../../components/GlobalModalContainer';
|
|||
import { StateType } from '../reducer';
|
||||
import { getIntl } from '../selectors/user';
|
||||
import { SmartChatColorPicker } from './ChatColorPicker';
|
||||
import { ConversationColorType } from '../../types/Colors';
|
||||
|
||||
function renderChatColorPicker({
|
||||
setGlobalDefaultConversationColor,
|
||||
}: {
|
||||
setGlobalDefaultConversationColor: (color: ConversationColorType) => unknown;
|
||||
}): JSX.Element {
|
||||
return (
|
||||
<SmartChatColorPicker
|
||||
isGlobal
|
||||
onSelectColor={setGlobalDefaultConversationColor}
|
||||
/>
|
||||
);
|
||||
function renderChatColorPicker(): JSX.Element {
|
||||
return <SmartChatColorPicker />;
|
||||
}
|
||||
|
||||
const mapStateToProps = (state: StateType) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue