Skip to content

Commit

Permalink
[landing] Making Dashboards the first/default tab (apache#4553)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and mistercrunch committed Mar 7, 2018
1 parent 9ae8ac9 commit 1b3d839
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions superset/assets/javascripts/welcome/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,7 @@ export default class App extends React.PureComponent {
return (
<div className="container welcome">
<Tabs defaultActiveKey={1} id="uncontrolled-tab-example">
<Tab eventKey={1} title={t('Recently Viewed')}>
<Panel>
<Row>
<Col md={8}><h2>{t('Recently Viewed')}</h2></Col>
</Row>
<hr />
<RecentActivity user={this.props.user} />
</Panel>
</Tab>
<Tab eventKey={2} title={t('Favorites')}>
<Panel>
<Row>
<Col md={8}><h2>{t('Favorites')}</h2></Col>
</Row>
<hr />
<Favorites user={this.props.user} />
</Panel>
</Tab>
<Tab eventKey={3} title={t('Dashboards')}>
<Tab eventKey={1} title={t('Dashboards')}>
<Panel>
<Row>
<Col md={8}><h2>{t('Dashboards')}</h2></Col>
Expand All @@ -62,6 +44,24 @@ export default class App extends React.PureComponent {
<DashboardTable search={this.state.search} />
</Panel>
</Tab>
<Tab eventKey={2} title={t('Recently Viewed')}>
<Panel>
<Row>
<Col md={8}><h2>{t('Recently Viewed')}</h2></Col>
</Row>
<hr />
<RecentActivity user={this.props.user} />
</Panel>
</Tab>
<Tab eventKey={3} title={t('Favorites')}>
<Panel>
<Row>
<Col md={8}><h2>{t('Favorites')}</h2></Col>
</Row>
<hr />
<Favorites user={this.props.user} />
</Panel>
</Tab>
</Tabs>
</div>
);
Expand Down

0 comments on commit 1b3d839

Please sign in to comment.