refactor: move SharedStorage to their own module

main
Josue 4 years ago committed by Tsu-ba-me
parent cf40057e97
commit cfff53bf1a
  1. 8
      striker-ui/components/SharedStorage/SharedStorage.tsx
  2. 6
      striker-ui/components/SharedStorage/SharedStorageNode.tsx
  3. 3
      striker-ui/components/SharedStorage/index.tsx

@ -2,11 +2,11 @@ import { useContext } from 'react';
import { Box } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import { BodyText, HeaderText } from './Text';
import { Panel, InnerPanel, PanelHeader } from './Panels';
import { BodyText, HeaderText } from '../Text';
import { Panel, InnerPanel, PanelHeader } from '../Panels';
import SharedStorageNode from './SharedStorageNode';
import PeriodicFetch from '../lib/fetchers/periodicFetch';
import { AnvilContext } from './AnvilContext';
import PeriodicFetch from '../../lib/fetchers/periodicFetch';
import { AnvilContext } from '../AnvilContext';
const useStyles = makeStyles((theme) => ({
header: {

@ -4,9 +4,9 @@ import { ClassNameMap } from '@material-ui/styles';
import * as prettyBytes from 'pretty-bytes';
import { AllocationBar } from './Bars';
import { BodyText } from './Text';
import { BLUE, RED_ON } from '../lib/consts/DEFAULT_THEME';
import { AllocationBar } from '../Bars';
import { BodyText } from '../Text';
import { BLUE, RED_ON } from '../../lib/consts/DEFAULT_THEME';
const selectDecorator = (
state: boolean,

@ -0,0 +1,3 @@
import SharedStorage from './SharedStorage';
export default SharedStorage;
Loading…
Cancel
Save