mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-01 02:05:41 +08:00
fixes navigation container
This commit is contained in:
parent
309e52b806
commit
de5136f9cb
2 changed files with 13 additions and 13 deletions
|
@ -15,7 +15,7 @@ addLocaleData([...enLocaleData]);
|
|||
const locale = "en-US";
|
||||
|
||||
const SettingsPage = () =>
|
||||
<div className="container">
|
||||
<div>
|
||||
<MainNav />
|
||||
</div>;
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ export default class MainNav extends Component {
|
|||
return (
|
||||
<div>
|
||||
<Navigation page="Settings" />
|
||||
<div>
|
||||
<div className="container">
|
||||
<Nav bsStyle="tabs" activeKey="1" onSelect={this.handleSelect}>
|
||||
<LinkContainer
|
||||
active={this.state.active === "1"}
|
||||
|
@ -49,18 +49,18 @@ export default class MainNav extends Component {
|
|||
</NavItem>
|
||||
</LinkContainer>
|
||||
</Nav>
|
||||
<Switch>
|
||||
<Route exact path="/" component={SettingsAccount} />
|
||||
<Route
|
||||
exact
|
||||
path="/settings"
|
||||
render={() => <Redirect to="/settings/account/profile" />}
|
||||
/>
|
||||
<Route path="/settings/account" component={SettingsAccount} />
|
||||
<Route path="/settings/teams" component={SettingsTeams} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</div>
|
||||
<Switch>
|
||||
<Route exact path="/" component={SettingsAccount} />
|
||||
<Route
|
||||
exact
|
||||
path="/settings"
|
||||
render={() => <Redirect to="/settings/account/profile" />}
|
||||
/>
|
||||
<Route path="/settings/account" component={SettingsAccount} />
|
||||
<Route path="/settings/teams" component={SettingsTeams} />
|
||||
<Route component={NotFound} />
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue