Introduce a new design for the left pane
This commit is contained in:
parent
d60600d6fb
commit
35a54cdc02
63 changed files with 1205 additions and 576 deletions
|
@ -30,6 +30,8 @@ export type ItemsStateType = {
|
|||
|
||||
readonly customColors?: CustomColorsItemType;
|
||||
|
||||
readonly preferredLeftPaneWidth?: number;
|
||||
|
||||
readonly preferredReactionEmoji?: Array<string>;
|
||||
};
|
||||
|
||||
|
@ -76,6 +78,7 @@ export const actions = {
|
|||
editCustomColor,
|
||||
removeCustomColor,
|
||||
resetDefaultChatColor,
|
||||
savePreferredLeftPaneWidth,
|
||||
setGlobalDefaultConversationColor,
|
||||
onSetSkinTone,
|
||||
putItem,
|
||||
|
@ -256,6 +259,14 @@ function setGlobalDefaultConversationColor(
|
|||
};
|
||||
}
|
||||
|
||||
function savePreferredLeftPaneWidth(
|
||||
preferredWidth: number
|
||||
): ThunkAction<void, RootStateType, unknown, ItemPutAction> {
|
||||
return dispatch => {
|
||||
dispatch(putItem('preferredLeftPaneWidth', preferredWidth));
|
||||
};
|
||||
}
|
||||
|
||||
// Reducer
|
||||
|
||||
function getEmptyState(): ItemsStateType {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue