From 178ea03af71e2c6e34b137852cfda86ec37f6399 Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 23 May 2023 17:42:03 +1000 Subject: [PATCH] fix: cleanup --- _locales/en/messages.json | 3 +-- ts/state/ducks/modalDialog.tsx | 6 +++--- ts/state/selectors/modal.ts | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index ec19331bd..50e40ecb0 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -508,6 +508,5 @@ "reactionPopupMany": "$name$, $name2$, $name3$ &", "reactionListCountSingular": "And $otherSingular$ has reacted $emoji$ to this message", "reactionListCountPlural": "And $otherPlural$ have reacted $emoji$ to this message", - "setDisplayPicture": "Set Display Picture", - "upload": "Upload" + "setDisplayPicture": "Set Display Picture" } diff --git a/ts/state/ducks/modalDialog.tsx b/ts/state/ducks/modalDialog.tsx index 8cd86097a..27007b962 100644 --- a/ts/state/ducks/modalDialog.tsx +++ b/ts/state/ducks/modalDialog.tsx @@ -55,7 +55,7 @@ export type ModalState = { deleteAccountModal: DeleteAccountModalState; reactListModalState: ReactModalsState; reactClearAllModalState: ReactModalsState; - displayPictureModalState: EditProfilePictureModalState; + editProfilePictureModalState: EditProfilePictureModalState; }; export const initialModalState: ModalState = { @@ -76,7 +76,7 @@ export const initialModalState: ModalState = { deleteAccountModal: null, reactListModalState: null, reactClearAllModalState: null, - displayPictureModalState: null, + editProfilePictureModalState: null, }; const ModalSlice = createSlice({ @@ -135,7 +135,7 @@ const ModalSlice = createSlice({ return { ...state, reactClearAllModalState: action.payload }; }, updateEditProfilePictureModel(state, action: PayloadAction) { - return { ...state, displayPictureModalState: action.payload }; + return { ...state, editProfilePictureModalState: action.payload }; }, }, }); diff --git a/ts/state/selectors/modal.ts b/ts/state/selectors/modal.ts index e2ccd6e52..259aad8b5 100644 --- a/ts/state/selectors/modal.ts +++ b/ts/state/selectors/modal.ts @@ -113,5 +113,5 @@ export const getReactClearAllDialog = createSelector( export const getEditProfilePictureModalState = createSelector( getModal, - (state: ModalState): EditProfilePictureModalState => state.displayPictureModalState + (state: ModalState): EditProfilePictureModalState => state.editProfilePictureModalState );