File tree 2 files changed +4
-3
lines changed
src/smart-components/EditUserProfile/components/EditUserProfileUI
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,9 @@ module.exports = ({
47
47
'css-vars-ponyfill' ,
48
48
'date-fns' ,
49
49
'dompurify' ,
50
+ // todo@v 4: remove this
50
51
// we do not add ts-pattern as dep to avoid conflict with client base
51
- 'ts-pattern' ,
52
+ // 'ts-pattern',
52
53
] ,
53
54
plugins : [
54
55
postcss ( {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { ButtonTypes } from '../../../../ui/Button';
19
19
import Label , { LabelColors , LabelTypography } from '../../../../ui/Label' ;
20
20
import TextButton from '../../../../ui/TextButton' ;
21
21
import { noop } from '../../../../utils/utils' ;
22
- import * as userActions from '../../../../lib/dux/user/actionTypes' ;
22
+ import { USER_ACTIONS } from '../../../../lib/dux/user/actionTypes' ;
23
23
24
24
export default function EditUserProfile ( ) : ReactElement {
25
25
const editProfileProps = useEditUserProfileContext ( ) ;
@@ -61,7 +61,7 @@ export default function EditUserProfile(): ReactElement {
61
61
nickname : inputRef ?. current ?. value ,
62
62
profileImage : newFile ,
63
63
} ) . then ( ( updatedUser ) => {
64
- userDispatcher ( { type : userActions . UPDATE_USER_INFO , payload : updatedUser } ) ;
64
+ userDispatcher ( { type : USER_ACTIONS . UPDATE_USER_INFO , payload : updatedUser } ) ;
65
65
if ( onEditProfile && typeof onEditProfile === 'function' ) {
66
66
onEditProfile ( updatedUser ) ;
67
67
}
You can’t perform that action at this time.
0 commit comments