mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
messages form at the bottom
This commit is contained in:
parent
a8dc543c3c
commit
2e0332218b
5 changed files with 97 additions and 35 deletions
|
@ -12,6 +12,7 @@ import pick from 'ramda/es/pick';
|
|||
import { CoverBackdrop } from '~/components/containers/CoverBackdrop';
|
||||
import { ProfileSettings } from '~/components/profile/ProfileSettings';
|
||||
import { ProfileAccounts } from '~/components/profile/ProfileAccounts';
|
||||
import { MessageForm } from '~/components/profile/MessageForm';
|
||||
|
||||
const TAB_CONTENT = {
|
||||
profile: <ProfileDescription />,
|
||||
|
@ -31,6 +32,14 @@ const mapDispatchToProps = {
|
|||
|
||||
type IProps = IDialogProps & ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & {};
|
||||
|
||||
const PROFILE_HEADERS = {
|
||||
// messages: <MessageForm />,
|
||||
};
|
||||
|
||||
const PROFILE_FOOTERS = {
|
||||
messages: <MessageForm />,
|
||||
};
|
||||
|
||||
const ProfileDialogUnconnected: FC<IProps> = ({
|
||||
onRequestClose,
|
||||
authSetProfile,
|
||||
|
@ -51,8 +60,10 @@ const ProfileDialogUnconnected: FC<IProps> = ({
|
|||
user={user}
|
||||
tab={tab}
|
||||
setTab={setTab}
|
||||
content={PROFILE_HEADERS[tab]}
|
||||
/>
|
||||
}
|
||||
footer={PROFILE_FOOTERS[tab]}
|
||||
backdrop={<CoverBackdrop cover={user && user.cover} />}
|
||||
onClose={onRequestClose}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue