spaceport/webclient/src/Debug.js

37 lines
733 B
JavaScript
Raw Normal View History

2022-07-13 06:51:28 +00:00
import React from 'react';
import { Link } from 'react-router-dom';
2022-04-10 07:11:53 +00:00
import './light.css';
2022-07-13 06:51:28 +00:00
import { Button, Container, Header } from 'semantic-ui-react';
2022-04-10 07:11:53 +00:00
export function Debug(props) {
return (
<Container>
<Header size='large'>Debug</Header>
<p>No warranty.</p>
<p>
<Button onClick={() => {throw new Error('test')}}>
Cause an error
</Button>
</p>
2022-07-12 21:39:57 +00:00
<p>
<Button onClick={() => {localStorage.clear()}}>
Clear localStorage
</Button>
</p>
2022-04-10 07:11:53 +00:00
<p><Link to='/classfeed'>Classfeed</Link></p>
<p><Link to='/usage/trotec'>Trotec Usage</Link></p>
2023-01-18 01:01:27 +00:00
<p><Link to='/display/lcars1'>LCARS1 Display</Link></p>
2023-04-05 04:54:49 +00:00
<p><Link to='/display/lcars2'>LCARS2 Display</Link></p>
2022-04-10 07:11:53 +00:00
</Container>
);
};