1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

universal backdrop component

This commit is contained in:
Fedor Katurov 2019-11-13 16:21:22 +07:00
parent 327272a08a
commit f781ecc6aa
4 changed files with 6 additions and 4 deletions

View file

@ -9,7 +9,7 @@ import { ProfileDescription } from '~/components/profile/ProfileDescription';
import * as AUTH_ACTIONS from '~/redux/auth/actions';
import { IAuthState } from '~/redux/auth/types';
import pick from 'ramda/es/pick';
import { ProfileBackdrop } from '~/components/profile/ProfileBackdrop';
import { CoverBackdrop } from '~/components/containers/CoverBackdrop';
const TAB_CONTENT = {
profile: <ProfileDescription />,
@ -49,7 +49,7 @@ const ProfileDialogUnconnected: FC<IProps> = ({
setTab={setTab}
/>
}
backdrop={<ProfileBackdrop cover={user && user.cover} />}
backdrop={<CoverBackdrop cover={user && user.cover} />}
onClose={onRequestClose}
>
{TAB_CONTENT[tab] || null}