Update columns layout for all pages
This commit is contained in:
parent
6f6f91e2f4
commit
e97b9d2168
2 changed files with 18 additions and 20 deletions
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import { Link } from 'react-router-dom';
|
import { NavLink } from 'react-router-dom';
|
||||||
|
|
||||||
export default class FeaturesPanel extends React.PureComponent {
|
export default class FeaturesPanel extends React.PureComponent {
|
||||||
|
|
||||||
|
@ -10,45 +10,45 @@ export default class FeaturesPanel extends React.PureComponent {
|
||||||
<div className='promo-panel__container'>
|
<div className='promo-panel__container'>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<Link className='promo-panel-item__btn' to='/settings/profile'>
|
<NavLink className='promo-panel-item__btn' to='/settings/profile'>
|
||||||
<Icon id='user' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='user' className='promo-panel-item__icon' fixedWidth />
|
||||||
Edit Profile
|
Edit Profile
|
||||||
</Link>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<Link className='promo-panel-item__btn' to='/messages'>
|
<NavLink className='promo-panel-item__btn' to='/messages'>
|
||||||
<Icon id='envelope' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='envelope' className='promo-panel-item__icon' fixedWidth />
|
||||||
Messages
|
Messages
|
||||||
</Link>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<Link className='promo-panel-item__btn' to='/bookmarks'>
|
<NavLink className='promo-panel-item__btn' to='/bookmarks'>
|
||||||
<Icon id='bookmark' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='bookmark' className='promo-panel-item__icon' fixedWidth />
|
||||||
Bookmarks
|
Bookmarks
|
||||||
</Link>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<Link className='promo-panel-item__btn' to='/lists'>
|
<NavLink className='promo-panel-item__btn' to='/lists'>
|
||||||
<Icon id='list' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='list' className='promo-panel-item__icon' fixedWidth />
|
||||||
Lists
|
Lists
|
||||||
</Link>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<Link className='promo-panel-item__btn' to='/auth/edit'>
|
<NavLink className='promo-panel-item__btn' to='/auth/edit'>
|
||||||
<Icon id='lock' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='lock' className='promo-panel-item__icon' fixedWidth />
|
||||||
Security
|
Security
|
||||||
</Link>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<Link className='promo-panel-item__btn' to='/settings/preferences'>
|
<NavLink className='promo-panel-item__btn' to='/settings/preferences'>
|
||||||
<Icon id='cog' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='cog' className='promo-panel-item__icon' fixedWidth />
|
||||||
Preferences
|
Preferences
|
||||||
</Link>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -24,6 +24,7 @@ import UploadArea from './components/upload_area';
|
||||||
import TabsBar from './components/tabs_bar';
|
import TabsBar from './components/tabs_bar';
|
||||||
import WhoToFollowPanel from './components/who_to_follow_panel';
|
import WhoToFollowPanel from './components/who_to_follow_panel';
|
||||||
import LinkFooter from './components/link_footer';
|
import LinkFooter from './components/link_footer';
|
||||||
|
import FeaturesPanel from './components/features_panel';
|
||||||
import ProfilePage from 'soapbox/pages/profile_page';
|
import ProfilePage from 'soapbox/pages/profile_page';
|
||||||
// import GroupsPage from 'soapbox/pages/groups_page';
|
// import GroupsPage from 'soapbox/pages/groups_page';
|
||||||
// import GroupPage from 'soapbox/pages/group_page';
|
// import GroupPage from 'soapbox/pages/group_page';
|
||||||
|
@ -137,19 +138,16 @@ const LAYOUT = {
|
||||||
},
|
},
|
||||||
DEFAULT: {
|
DEFAULT: {
|
||||||
LEFT: [
|
LEFT: [
|
||||||
<WhoToFollowPanel key='0' />,
|
|
||||||
<LinkFooter key='1' />,
|
<LinkFooter key='1' />,
|
||||||
],
|
],
|
||||||
RIGHT: [
|
RIGHT: [
|
||||||
// <GroupSidebarPanel key='0' />
|
<FeaturesPanel key='0' />,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
STATUS: {
|
STATUS: {
|
||||||
TOP: null,
|
TOP: null,
|
||||||
LEFT: null,
|
LEFT: null,
|
||||||
RIGHT: [
|
RIGHT: [
|
||||||
// <GroupSidebarPanel key='0' />,
|
|
||||||
<WhoToFollowPanel key='1' />,
|
|
||||||
<LinkFooter key='2' />,
|
<LinkFooter key='2' />,
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -197,13 +195,13 @@ class SwitchingColumnsArea extends React.PureComponent {
|
||||||
<Switch>
|
<Switch>
|
||||||
<WrappedRoute path='/auth/sign_in' component={LoginPage} publicRoute exact />
|
<WrappedRoute path='/auth/sign_in' component={LoginPage} publicRoute exact />
|
||||||
<WrappedRoute path='/auth/reset_password' component={PasswordReset} publicRoute exact />
|
<WrappedRoute path='/auth/reset_password' component={PasswordReset} publicRoute exact />
|
||||||
<WrappedRoute path='/auth/edit' component={SecurityForm} exact />
|
<WrappedRoute path='/auth/edit' layout={LAYOUT.DEFAULT} component={SecurityForm} exact />
|
||||||
<WrappedRoute path='/auth/mfa' component={MfaForm} exact />
|
<WrappedRoute path='/auth/mfa' layout={LAYOUT.DEFAULT} component={MfaForm} exact />
|
||||||
|
|
||||||
<WrappedRoute path='/' exact page={HomePage} component={HomeTimeline} content={children} />
|
<WrappedRoute path='/' exact page={HomePage} component={HomeTimeline} content={children} />
|
||||||
<WrappedRoute path='/timeline/local' exact page={HomePage} component={CommunityTimeline} content={children} />
|
<WrappedRoute path='/timeline/local' exact page={HomePage} component={CommunityTimeline} content={children} />
|
||||||
<WrappedRoute path='/timeline/fediverse' exact page={HomePage} component={PublicTimeline} content={children} />
|
<WrappedRoute path='/timeline/fediverse' exact page={HomePage} component={PublicTimeline} content={children} />
|
||||||
<WrappedRoute path='/messages' component={DirectTimeline} content={children} componentParams={{ shouldUpdateScroll: this.shouldUpdateScroll }} />
|
<WrappedRoute path='/messages' layout={LAYOUT.DEFAULT} component={DirectTimeline} content={children} componentParams={{ shouldUpdateScroll: this.shouldUpdateScroll }} />
|
||||||
|
|
||||||
{/*
|
{/*
|
||||||
<WrappedRoute path='/groups' exact page={GroupsPage} component={Groups} content={children} componentParams={{ activeTab: 'featured' }} />
|
<WrappedRoute path='/groups' exact page={GroupsPage} component={Groups} content={children} componentParams={{ activeTab: 'featured' }} />
|
||||||
|
|
Loading…
Reference in a new issue