Added noSidebar prop to ProfilePage, ProfileLayout

• Added:
- noSidebar prop to ProfilePage, ProfileLayout for photos and videos tabs
This commit is contained in:
mgabdev
2020-06-08 19:39:35 -04:00
parent a5e99dd7c3
commit 2c54bf43b0
2 changed files with 27 additions and 11 deletions

View File

@@ -44,6 +44,7 @@ class ProfilePage extends ImmutablePureComponent {
account: ImmutablePropTypes.map,
onFetchAccountByUsername: PropTypes.func.isRequired,
unavailable: PropTypes.bool.isRequired,
noSidebar: PropTypes.bool,
}
componentDidMount() {
@@ -55,6 +56,7 @@ class ProfilePage extends ImmutablePureComponent {
account,
children,
unavailable,
noSidebar,
params: { username },
} = this.props
@@ -66,6 +68,7 @@ class ProfilePage extends ImmutablePureComponent {
account={account}
titleHTML={nameHTML}
unavailable={unavailable}
noSidebar={noSidebar}
>
<PageTitle path={`${name} (@${username})`} />
{