refactor: fix paths to constanst

main
Josue 4 years ago committed by Tsu-ba-me
parent 4861bbd91a
commit 0bf3e6cd38
  1. 2
      striker-ui/components/Anvils/Anvil.tsx
  2. 2
      striker-ui/components/Anvils/SelectedAnvil.tsx
  3. 5
      striker-ui/components/Nodes/AnvilNode.tsx

@ -1,5 +1,5 @@
import { BodyText } from '../Text'; import { BodyText } from '../Text';
import anvilState from './CONSTS'; import anvilState from '../../lib/consts/ANVILS';
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => { const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => {
return ( return (

@ -4,7 +4,7 @@ import { ClassNameMap } from '@material-ui/styles';
import { makeStyles } from '@material-ui/core/styles'; import { makeStyles } from '@material-ui/core/styles';
import { HeaderText } from '../Text'; import { HeaderText } from '../Text';
import { BLUE, PURPLE_OFF, RED_ON } from '../../lib/consts/DEFAULT_THEME'; import { BLUE, PURPLE_OFF, RED_ON } from '../../lib/consts/DEFAULT_THEME';
import anvilState from './CONSTS'; import anvilState from '../../lib/consts/ANVILS';
import { AnvilContext } from '../AnvilContext'; import { AnvilContext } from '../AnvilContext';
const useStyles = makeStyles(() => ({ const useStyles = makeStyles(() => ({

@ -7,6 +7,7 @@ import { ProgressBar } from '../Bars';
import { BodyText } from '../Text'; import { BodyText } from '../Text';
import PanelHeader from '../PanelHeader'; import PanelHeader from '../PanelHeader';
import { BLUE, RED_ON, TEXT, PURPLE_OFF } from '../../lib/consts/DEFAULT_THEME'; import { BLUE, RED_ON, TEXT, PURPLE_OFF } from '../../lib/consts/DEFAULT_THEME';
import nodeState from '../../lib/consts/NODES';
const useStyles = makeStyles(() => ({ const useStyles = makeStyles(() => ({
root: { root: {
@ -94,7 +95,9 @@ const AnvilNode = ({
/> />
</Box> </Box>
<Box> <Box>
<BodyText text={node.state} /> <BodyText
text={nodeState.get(node.state) || 'Not Available'}
/>
</Box> </Box>
</Box> </Box>
</PanelHeader> </PanelHeader>

Loading…
Cancel
Save