mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
actually getting event about adding account
This commit is contained in:
parent
5396cf7611
commit
e94d776ee5
12 changed files with 252 additions and 136 deletions
|
@ -11,11 +11,13 @@ import { IAuthState } from '~/redux/auth/types';
|
|||
import pick from 'ramda/es/pick';
|
||||
import { CoverBackdrop } from '~/components/containers/CoverBackdrop';
|
||||
import { ProfileSettings } from '~/components/profile/ProfileSettings';
|
||||
import { ProfileAccounts } from '~/components/profile/ProfileAccounts';
|
||||
|
||||
const TAB_CONTENT = {
|
||||
profile: <ProfileDescription />,
|
||||
messages: <ProfileMessages />,
|
||||
settings: <ProfileSettings />,
|
||||
accounts: <ProfileAccounts />,
|
||||
};
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
|
@ -59,9 +61,6 @@ const ProfileDialogUnconnected: FC<IProps> = ({
|
|||
);
|
||||
};
|
||||
|
||||
const ProfileDialog = connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ProfileDialogUnconnected);
|
||||
const ProfileDialog = connect(mapStateToProps, mapDispatchToProps)(ProfileDialogUnconnected);
|
||||
|
||||
export { ProfileDialog };
|
||||
|
|
|
@ -23,12 +23,21 @@ const ProfileTabs: FC<IProps> = ({ tab, is_own, setTab }) => (
|
|||
Сообщения
|
||||
</div>
|
||||
{is_own && (
|
||||
<div
|
||||
className={classNames(styles.tab, { [styles.active]: tab === 'settings' })}
|
||||
onClick={() => setTab('settings')}
|
||||
>
|
||||
Настройки
|
||||
</div>
|
||||
<>
|
||||
<div
|
||||
className={classNames(styles.tab, { [styles.active]: tab === 'settings' })}
|
||||
onClick={() => setTab('settings')}
|
||||
>
|
||||
Настройки
|
||||
</div>
|
||||
|
||||
<div
|
||||
className={classNames(styles.tab, { [styles.active]: tab === 'accounts' })}
|
||||
onClick={() => setTab('accounts')}
|
||||
>
|
||||
Аккаунты
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue