Skip to content

Commit

Permalink
tabnav grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxnelson997 committed Jun 12, 2018
1 parent 92b81ee commit 3260040
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
6 changes: 5 additions & 1 deletion src/components/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ class Dashboard extends Component {
}

render() {
return <TabNav tabs={this.state.tabs}/>
return (
<div className='dashboard'>
<TabNav tabs={this.state.tabs}/>
</div>
)
}

}
Expand Down
12 changes: 4 additions & 8 deletions src/components/tabnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@ import React, { Component } from 'react';

class TabNav extends Component {
render() {
var JSX = [
<h1>TABS</h1>
];
return (
<div className='tab-nav'>

this.props.tabs.map((tab, index) => {
JSX.push(tab.component);
})

return JSX;
</div>
)
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/style/dashboard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.dashboard {
grid-row: content-s/content-e;
grid-column: content-s/content-e;
}
5 changes: 4 additions & 1 deletion src/style/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
// HELPERS
@import 'form-title';
@import 'form-fields';
@import 'text-link';
@import 'text-link';

// DASHBOARD
@import 'dashboard';

0 comments on commit 3260040

Please sign in to comment.