Skip to content

Commit

Permalink
Update App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhellman committed Dec 9, 2019
1 parent a8d28fc commit 7a27c0f
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions src/pages/options/components/App.tsx
@@ -1,32 +1,14 @@
import React, { useState } from 'react';
import Nav from 'react-bootstrap/Nav';
import Tab from 'react-bootstrap/Tab';
import React from 'react';

import { OptionsPane } from './OptionsPane';
import { ChangeLogPane } from './ChangeLogPane';
import { OptionsPane } from '../containers/OptionsPane';
import Theme from '../../../components/Theme';

export function App() {
const [key, setKey] = useState('options');

function onSelect(k: string) {
setKey(k);
}

return (
<Tab.Container activeKey={key} onSelect={onSelect}>
<Nav variant="pills">
<Nav.Item >
<Nav.Link eventKey="options">Options</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link eventKey="change-log">Change Log</Nav.Link>
</Nav.Item>
</Nav>

<Tab.Content>
<OptionsPane />
<ChangeLogPane />
</Tab.Content>
</Tab.Container>
<Theme>
<OptionsPane />
<ChangeLogPane />
</Theme>
);
}

0 comments on commit 7a27c0f

Please sign in to comment.