File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/smart-components/EditUserProfile/components/EditUserProfileUI Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ module.exports = ({
4747 'css-vars-ponyfill' ,
4848 'date-fns' ,
4949 'dompurify' ,
50+ // todo@v 4: remove this
5051 // we do not add ts-pattern as dep to avoid conflict with client base
51- 'ts-pattern' ,
52+ // 'ts-pattern',
5253 ] ,
5354 plugins : [
5455 postcss ( {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { ButtonTypes } from '../../../../ui/Button';
1919import Label , { LabelColors , LabelTypography } from '../../../../ui/Label' ;
2020import TextButton from '../../../../ui/TextButton' ;
2121import { noop } from '../../../../utils/utils' ;
22- import * as userActions from '../../../../lib/dux/user/actionTypes' ;
22+ import { USER_ACTIONS } from '../../../../lib/dux/user/actionTypes' ;
2323
2424export default function EditUserProfile ( ) : ReactElement {
2525 const editProfileProps = useEditUserProfileContext ( ) ;
@@ -61,7 +61,7 @@ export default function EditUserProfile(): ReactElement {
6161 nickname : inputRef ?. current ?. value ,
6262 profileImage : newFile ,
6363 } ) . then ( ( updatedUser ) => {
64- userDispatcher ( { type : userActions . UPDATE_USER_INFO , payload : updatedUser } ) ;
64+ userDispatcher ( { type : USER_ACTIONS . UPDATE_USER_INFO , payload : updatedUser } ) ;
6565 if ( onEditProfile && typeof onEditProfile === 'function' ) {
6666 onEditProfile ( updatedUser ) ;
6767 }
You can’t perform that action at this time.
0 commit comments