mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Footer to ProfileSettingsPage
This commit is contained in:
parent
de19161a4c
commit
bc92abd93d
3 changed files with 61 additions and 24 deletions
|
|
@ -5,7 +5,7 @@
|
|||
}
|
||||
.content {
|
||||
width: calc(100% - 48px);
|
||||
margin: 12px 24px;
|
||||
margin: 12px 24px 24px 24px;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
max-width: 565px;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,15 @@ import { FormattedMessage } from 'react-intl';
|
|||
import * as propTypes from '../../util/propTypes';
|
||||
import { ensureCurrentUser } from '../../util/data';
|
||||
import { isScrollingDisabled } from '../../ducks/UI.duck';
|
||||
import { Page, UserNav } from '../../components';
|
||||
import {
|
||||
Page,
|
||||
UserNav,
|
||||
LayoutSingleColumn,
|
||||
LayoutWrapperTopbar,
|
||||
LayoutWrapperMain,
|
||||
LayoutWrapperFooter,
|
||||
Footer,
|
||||
} from '../../components';
|
||||
import { ProfileSettingsForm, TopbarContainer } from '../../containers';
|
||||
|
||||
import { clearUpdatedForm, updateProfile, uploadImage } from './ProfileSettingsPage.duck';
|
||||
|
|
@ -91,15 +99,23 @@ export class ProfileSettingsPageComponent extends Component {
|
|||
title="Profile settings"
|
||||
scrollingDisabled={scrollingDisabled}
|
||||
>
|
||||
<TopbarContainer currentPage="ProfileSettingsPage" />
|
||||
<UserNav selectedPageName="ProfileSettingsPage" />
|
||||
|
||||
<div className={css.content}>
|
||||
<h1>
|
||||
<FormattedMessage id="ProfileSettingsPage.title" />
|
||||
</h1>
|
||||
{profileSettingsForm}
|
||||
</div>
|
||||
<LayoutSingleColumn>
|
||||
<LayoutWrapperTopbar>
|
||||
<TopbarContainer currentPage="ProfileSettingsPage" />
|
||||
<UserNav selectedPageName="ProfileSettingsPage" />
|
||||
</LayoutWrapperTopbar>
|
||||
<LayoutWrapperMain>
|
||||
<div className={css.content}>
|
||||
<h1>
|
||||
<FormattedMessage id="ProfileSettingsPage.title" />
|
||||
</h1>
|
||||
{profileSettingsForm}
|
||||
</div>
|
||||
</LayoutWrapperMain>
|
||||
<LayoutWrapperFooter>
|
||||
<Footer />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,21 +7,42 @@ exports[`ContactDetailsPage matches snapshot 1`] = `
|
|||
scrollingDisabled={false}
|
||||
title="Profile settings"
|
||||
>
|
||||
<withRouter(Connect(TopbarContainerComponent))
|
||||
currentPage="ProfileSettingsPage"
|
||||
/>
|
||||
<UserNav
|
||||
<LayoutSingleColumn
|
||||
className={null}
|
||||
rootClassName={null}
|
||||
selectedPageName="ProfileSettingsPage"
|
||||
/>
|
||||
<div>
|
||||
<h1>
|
||||
<FormattedMessage
|
||||
id="ProfileSettingsPage.title"
|
||||
values={Object {}}
|
||||
>
|
||||
<LayoutWrapperTopbar
|
||||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<withRouter(Connect(TopbarContainerComponent))
|
||||
currentPage="ProfileSettingsPage"
|
||||
/>
|
||||
</h1>
|
||||
</div>
|
||||
<UserNav
|
||||
className={null}
|
||||
rootClassName={null}
|
||||
selectedPageName="ProfileSettingsPage"
|
||||
/>
|
||||
</LayoutWrapperTopbar>
|
||||
<LayoutWrapperMain
|
||||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<div>
|
||||
<h1>
|
||||
<FormattedMessage
|
||||
id="ProfileSettingsPage.title"
|
||||
values={Object {}}
|
||||
/>
|
||||
</h1>
|
||||
</div>
|
||||
</LayoutWrapperMain>
|
||||
<LayoutWrapperFooter
|
||||
className={null}
|
||||
rootClassName={null}
|
||||
>
|
||||
<InjectIntl(Footer) />
|
||||
</LayoutWrapperFooter>
|
||||
</LayoutSingleColumn>
|
||||
</Page>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue