Move logout, add info, and VPN warning

This commit is contained in:
Tanner Collin 2019-03-21 21:55:33 -06:00
parent 3863f58b41
commit 9fd00d6442
2 changed files with 8 additions and 25 deletions

View File

@ -208,9 +208,6 @@ class App extends Component {
network ? network ?
<div> <div>
<Menu fixed='top' borderless inverted> <Menu fixed='top' borderless inverted>
<Menu.Item onClick={this.confirmLogout}>
<Icon name='user close' size='big' />
</Menu.Item>
<Menu.Item as={Link} to='/'> <Menu.Item as={Link} to='/'>
<Icon name='home' size='big' /> <Icon name='home' size='big' />
</Menu.Item> </Menu.Item>
@ -218,6 +215,9 @@ class App extends Component {
<Icon name='circle' color={connected && toolStatus ? 'green' : 'red'} /> <Icon name='circle' color={connected && toolStatus ? 'green' : 'red'} />
{connected && toolStatus ? 'Connected' : 'Disconnected'} {connected && toolStatus ? 'Connected' : 'Disconnected'}
</Menu.Item> </Menu.Item>
<Menu.Item onClick={this.confirmLogout} position='right'>
<Icon name='user close' size='big' />
</Menu.Item>
</Menu> </Menu>
<div style={{height: '70px', display: 'inline-block'}} /> <div style={{height: '70px', display: 'inline-block'}} />
@ -306,6 +306,9 @@ class App extends Component {
<Header inverted icon> <Header inverted icon>
<Icon color='red' name='wifi' /> <Icon color='red' name='wifi' />
Please connect to the "Protospace" wifi Please connect to the "Protospace" wifi
<br />
<br />
Disconnect from any VPNs
</Header> </Header>
<br /> <br />
<Button size='big' inverted icon labelPosition='left' onClick={this.handleRefresh}> <Button size='big' inverted icon labelPosition='left' onClick={this.handleRefresh}>

View File

@ -76,28 +76,8 @@ class Tool extends Component {
</div> </div>
</Segment> </Segment>
<Table basic='very' unstackable> <Header as='h4'>Information</Header>
<Table.Body> <p>{tool.info}</p>
<Table.Row>
<Table.Cell>Cat</Table.Cell>
<Table.Cell>Meow</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Dog</Table.Cell>
<Table.Cell warning>
<Icon name='attention' />
Bark
</Table.Cell>
</Table.Row>
<Table.Row>
<Table.Cell>Bird</Table.Cell>
<Table.Cell>Chrip</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
<Header as='h4'>Notes</Header>
<p>{tool.notes}</p>
</Segment> </Segment>
</Container> </Container>
); );