fix: cleanup

pull/2765/head
William Grant 3 years ago
parent b00eb52d35
commit 178ea03af7

@ -508,6 +508,5 @@
"reactionPopupMany": "$name$, $name2$, $name3$ &", "reactionPopupMany": "$name$, $name2$, $name3$ &",
"reactionListCountSingular": "And $otherSingular$ has reacted <span>$emoji$</span> to this message", "reactionListCountSingular": "And $otherSingular$ has reacted <span>$emoji$</span> to this message",
"reactionListCountPlural": "And $otherPlural$ have reacted <span>$emoji$</span> to this message", "reactionListCountPlural": "And $otherPlural$ have reacted <span>$emoji$</span> to this message",
"setDisplayPicture": "Set Display Picture", "setDisplayPicture": "Set Display Picture"
"upload": "Upload"
} }

@ -55,7 +55,7 @@ export type ModalState = {
deleteAccountModal: DeleteAccountModalState; deleteAccountModal: DeleteAccountModalState;
reactListModalState: ReactModalsState; reactListModalState: ReactModalsState;
reactClearAllModalState: ReactModalsState; reactClearAllModalState: ReactModalsState;
displayPictureModalState: EditProfilePictureModalState; editProfilePictureModalState: EditProfilePictureModalState;
}; };
export const initialModalState: ModalState = { export const initialModalState: ModalState = {
@ -76,7 +76,7 @@ export const initialModalState: ModalState = {
deleteAccountModal: null, deleteAccountModal: null,
reactListModalState: null, reactListModalState: null,
reactClearAllModalState: null, reactClearAllModalState: null,
displayPictureModalState: null, editProfilePictureModalState: null,
}; };
const ModalSlice = createSlice({ const ModalSlice = createSlice({
@ -135,7 +135,7 @@ const ModalSlice = createSlice({
return { ...state, reactClearAllModalState: action.payload }; return { ...state, reactClearAllModalState: action.payload };
}, },
updateEditProfilePictureModel(state, action: PayloadAction<EditProfilePictureModalState>) { updateEditProfilePictureModel(state, action: PayloadAction<EditProfilePictureModalState>) {
return { ...state, displayPictureModalState: action.payload }; return { ...state, editProfilePictureModalState: action.payload };
}, },
}, },
}); });

@ -113,5 +113,5 @@ export const getReactClearAllDialog = createSelector(
export const getEditProfilePictureModalState = createSelector( export const getEditProfilePictureModalState = createSelector(
getModal, getModal,
(state: ModalState): EditProfilePictureModalState => state.displayPictureModalState (state: ModalState): EditProfilePictureModalState => state.editProfilePictureModalState
); );

Loading…
Cancel
Save