Merge branch 'master' into 14452-my-account
[arvados-workbench2.git] / src / views / my-account-panel / my-account-panel.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { RootState } from '~/store/store';
6 import { Dispatch } from 'redux';
7 import { connect } from 'react-redux';
8 import { MyAccountPanelRoot, MyAccountPanelRootDataProps, MyAccountPanelRootActionProps } from '~/views/my-account-panel/my-account-panel-root';
9
10 const mapStateToProps = (state: RootState): MyAccountPanelRootDataProps => ({
11     user: state.auth.user
12 });
13
14 const mapDispatchToProps = (dispatch: Dispatch): MyAccountPanelRootActionProps => ({
15
16 });
17
18 export const MyAccountPanel = connect(mapStateToProps, mapDispatchToProps)(MyAccountPanelRoot);