Added noSidebar prop to ProfilePage, ProfileLayout
• Added: - noSidebar prop to ProfilePage, ProfileLayout for photos and videos tabs
This commit is contained in:
@@ -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})`} />
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user