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 anvilState from './CONSTS';
import anvilState from '../../lib/consts/ANVILS';
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => {
return (

@ -4,7 +4,7 @@ import { ClassNameMap } from '@material-ui/styles';
import { makeStyles } from '@material-ui/core/styles';
import { HeaderText } from '../Text';
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';
const useStyles = makeStyles(() => ({

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

Loading…
Cancel
Save