Skip to content

Commit

Permalink
Render the list of tabs using TabBarContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Oct 3, 2017
1 parent 325a103 commit 98a0e4d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/App.js
Expand Up @@ -2,25 +2,29 @@ import React, { Component } from 'react';
import {
Header,
Container,
Menu,
} from "semantic-ui-react";

import TabBarContainer from "./features/tabs/TabBarContainer";


import './App.css';

class App extends Component {
render() {
const tabs = [
{name : "unitInfo", label : "Unit Info"},
{name : "pilots", label : "Pilots"},
{name : "mechs", label : "Mechs"},
{name : "unitOrganization", label : "Unit Organization"}
];

return (
<div className="App">
<div className="App-header">
<Header inverted as="h1">Project Mini-Mek</Header>
</div>
<Container>
<Menu tabular>
<Menu.Item name="unitInfo" active={true}>Unit Info</Menu.Item>
<Menu.Item name="pilots" active={false}>Pilots</Menu.Item>
<Menu.Item name="mechs" active={false}>Mechs</Menu.Item>
<Menu.Item name="unitOrganization" active={false}>Unit Organization</Menu.Item>
</Menu>
<TabBarContainer tabs={tabs} size="massive" />
</Container>
</div>
);
Expand Down

0 comments on commit 98a0e4d

Please sign in to comment.