18549: New implementation with snackbar
[arvados-workbench2.git] / src / views / my-account-panel / my-account-panel.tsx
index 03caa887a1466bac4402bcf1bd8f73167d420bee..2421a28a7c54f899ec6a22911f21b1699e68013d 100644 (file)
@@ -2,24 +2,26 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { RootState } from '~/store/store';
+import { RootState } from 'store/store';
 import { compose } from 'redux';
 import { reduxForm, isPristine, isValid } from 'redux-form';
 import { connect } from 'react-redux';
-import { saveEditedUser } from '~/store/my-account/my-account-panel-actions';
-import { MyAccountPanelRoot, MyAccountPanelRootDataProps, MY_ACCOUNT_FORM } from '~/views/my-account-panel/my-account-panel-root';
+import { saveEditedUser } from 'store/my-account/my-account-panel-actions';
+import { MyAccountPanelRoot, MyAccountPanelRootDataProps } from 'views/my-account-panel/my-account-panel-root';
+import { MY_ACCOUNT_FORM } from "store/my-account/my-account-panel-actions";
 
 const mapStateToProps = (state: RootState): MyAccountPanelRootDataProps => ({
     isPristine: isPristine(MY_ACCOUNT_FORM)(state),
     isValid: isValid(MY_ACCOUNT_FORM)(state),
-    initialValues: state.auth.user
+    initialValues: state.auth.user,
+    localCluster: state.auth.localCluster
 });
 
 export const MyAccountPanel = compose(
     connect(mapStateToProps),
     reduxForm({
-    form: MY_ACCOUNT_FORM,
-    onSubmit: (data, dispatch) => {
-        dispatch(saveEditedUser(data));
-    }
-}))(MyAccountPanelRoot);
\ No newline at end of file
+        form: MY_ACCOUNT_FORM,
+        onSubmit: (data, dispatch) => {
+            dispatch(saveEditedUser(data));
+        }
+    }))(MyAccountPanelRoot);