parent
718e654f24
commit
4d55ab6b91
14 changed files with 38 additions and 41 deletions
@ -1,20 +0,0 @@ |
||||
import { useState } from 'react'; |
||||
import { Switch, Grid } from '@material-ui/core'; |
||||
import { HeaderText } from './Text'; |
||||
|
||||
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { |
||||
const [checked, setChecked] = useState<boolean>(true); |
||||
return ( |
||||
<> |
||||
<Grid item xs={6}> |
||||
<HeaderText text={anvil.anvil_name} /> |
||||
<HeaderText text={anvil.anvil_state || 'State unavailable'} /> |
||||
</Grid> |
||||
<Grid item xs={3}> |
||||
<Switch checked={checked} onChange={() => setChecked(!checked)} /> |
||||
</Grid> |
||||
</> |
||||
); |
||||
}; |
||||
|
||||
export default Anvil; |
@ -0,0 +1,13 @@ |
||||
import { Grid } from '@material-ui/core'; |
||||
import { BodyText } from '../Text'; |
||||
|
||||
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { |
||||
return ( |
||||
<Grid item xs={12}> |
||||
<BodyText text={anvil.anvil_name} /> |
||||
<BodyText text={anvil.anvil_state || 'State unavailable'} /> |
||||
</Grid> |
||||
); |
||||
}; |
||||
|
||||
export default Anvil; |
@ -1,7 +1,7 @@ |
||||
import { makeStyles } from '@material-ui/core/styles'; |
||||
import { List, ListItem, ListItemText, Divider } from '@material-ui/core'; |
||||
import { TEXT } from '../lib/consts/DEFAULT_THEME'; |
||||
import { BodyText } from './Text'; |
||||
import { TEXT } from '../../lib/consts/DEFAULT_THEME'; |
||||
import { BodyText } from '../Text'; |
||||
|
||||
const useStyles = makeStyles(() => ({ |
||||
root: { |
@ -1,6 +1,6 @@ |
||||
import { useState } from 'react'; |
||||
import { Switch, Grid } from '@material-ui/core'; |
||||
import { HeaderText } from './Text'; |
||||
import { HeaderText } from '../Text'; |
||||
|
||||
const SelectedAnvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { |
||||
const [checked, setChecked] = useState<boolean>(true); |
@ -1,6 +1,6 @@ |
||||
import { Grid } from '@material-ui/core'; |
||||
import Panel from './Panel'; |
||||
import PeriodicFetch from '../lib/fetchers/periodicFetch'; |
||||
import Panel from '../Panel'; |
||||
import PeriodicFetch from '../../lib/fetchers/periodicFetch'; |
||||
import SelectedAnvil from './SelectedAnvil'; |
||||
import AnvilList from './AnvilList'; |
||||
|
@ -0,0 +1,4 @@ |
||||
import AllocationBar from './AllocationBar'; |
||||
import ProgressBar from './ProgressBar'; |
||||
|
||||
export { AllocationBar, ProgressBar }; |
@ -1,9 +1,9 @@ |
||||
import { Grid, Switch } from '@material-ui/core'; |
||||
|
||||
import InnerPanel from './InnerPanel'; |
||||
import ProgressBar from './ProgressBar'; |
||||
import { BodyText } from './Text'; |
||||
import PanelHeader from './PanelHeader'; |
||||
import InnerPanel from '../InnerPanel'; |
||||
import { ProgressBar } from '../Bars'; |
||||
import { BodyText } from '../Text'; |
||||
import PanelHeader from '../PanelHeader'; |
||||
|
||||
const AnvilNode = ({ |
||||
node, |
Loading…
Reference in new issue