From 844e201c0b0c9749218c09f2962da2d7698fd96b Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 30 Apr 2021 12:32:58 -0400 Subject: [PATCH] refactor: move Network to its own module --- striker-ui/components/{ => Network}/Network.tsx | 10 +++++----- striker-ui/components/Network/index.tsx | 3 +++ striker-ui/components/{ => Network}/processNetwork.ts | 0 3 files changed, 8 insertions(+), 5 deletions(-) rename striker-ui/components/{ => Network}/Network.tsx (91%) create mode 100644 striker-ui/components/Network/index.tsx rename striker-ui/components/{ => Network}/processNetwork.ts (100%) diff --git a/striker-ui/components/Network.tsx b/striker-ui/components/Network/Network.tsx similarity index 91% rename from striker-ui/components/Network.tsx rename to striker-ui/components/Network/Network.tsx index 1eb69c68..4d0c7fb7 100644 --- a/striker-ui/components/Network.tsx +++ b/striker-ui/components/Network/Network.tsx @@ -2,12 +2,12 @@ import { useContext } from 'react'; import { Box, Divider } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import { ClassNameMap } from '@material-ui/styles'; -import { Panel } from './Panels'; -import { HeaderText, BodyText } from './Text'; -import PeriodicFetch from '../lib/fetchers/periodicFetch'; -import { BLUE, PURPLE_OFF, DIVIDER } from '../lib/consts/DEFAULT_THEME'; +import { Panel } from '../Panels'; +import { HeaderText, BodyText } from '../Text'; +import PeriodicFetch from '../../lib/fetchers/periodicFetch'; +import { BLUE, PURPLE_OFF, DIVIDER } from '../../lib/consts/DEFAULT_THEME'; import processNetworkData from './processNetwork'; -import { AnvilContext } from './AnvilContext'; +import { AnvilContext } from '../AnvilContext'; const useStyles = makeStyles((theme) => ({ container: { diff --git a/striker-ui/components/Network/index.tsx b/striker-ui/components/Network/index.tsx new file mode 100644 index 00000000..a6382ec9 --- /dev/null +++ b/striker-ui/components/Network/index.tsx @@ -0,0 +1,3 @@ +import Network from './Network'; + +export default Network; diff --git a/striker-ui/components/processNetwork.ts b/striker-ui/components/Network/processNetwork.ts similarity index 100% rename from striker-ui/components/processNetwork.ts rename to striker-ui/components/Network/processNetwork.ts