Skip to content

Commit 98c1ec8

Browse files
committed
reorganized structure of components
1 parent 37018a2 commit 98c1ec8

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

src/app/components/ComponentMap.tsx renamed to src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import {
1818
} from '@visx/tooltip';
1919
import LinkControls from './LinkControls';
2020
import getLinkComponent from './getLinkComponent';
21-
import { toggleExpanded, setCurrentTabInApp } from '../actions/actions';
22-
import { useStoreContext } from '../store';
21+
import { toggleExpanded, setCurrentTabInApp } from '../../../actions/actions';
22+
import { useStoreContext } from '../../../store';
2323

2424
const exclude = ['childExpirationTime', 'staticContext', '_debugSource', 'actualDuration', 'actualStartTime', 'treeBaseDuration', '_debugID', '_debugIsCurrentlyTiming', 'selfBaseDuration', 'expirationTime', 'effectTag', 'alternate', '_owner', '_store', 'get key', 'ref', '_self', '_source', 'firstBaseUpdate', 'updateQueue', 'lastBaseUpdate', 'shared', 'responders', 'pending', 'lanes', 'childLanes', 'effects', 'memoizedState', 'pendingProps', 'lastEffect', 'firstEffect', 'tag', 'baseState', 'baseQueue', 'dependencies', 'Consumer', 'context', '_currentRenderer', '_currentRenderer2', 'mode', 'flags', 'nextEffect', 'sibling', 'create', 'deps', 'next', 'destroy', 'parentSub', 'child', 'key', 'return', 'children', '$$typeof', '_threadCount', '_calculateChangedBits', '_currentValue', '_currentValue2', 'Provider', '_context', 'stateNode', 'elementType', 'type'];
2525

src/app/components/History.tsx renamed to src/app/components/StateRoute/History.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import React, { useEffect } from 'react';
55
import { diff, formatters } from 'jsondiffpatch';
66
import * as d3 from 'd3';
77

8-
import { changeView, changeSlider, setCurrentTabInApp } from '../actions/actions';
9-
import { useStoreContext } from '../store';
8+
import { changeView, changeSlider, setCurrentTabInApp } from '../../actions/actions';
9+
import { useStoreContext } from '../../store';
1010

1111
interface defaultMargin {
1212
top: number,

src/app/components/BarGraph.tsx renamed to src/app/components/StateRoute/PerformanceVisx/BarGraph.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { scaleBand, scaleLinear, scaleOrdinal } from '@visx/scale';
99
import { useTooltip, useTooltipInPortal, defaultStyles } from '@visx/tooltip';
1010
import { Text } from '@visx/text';
1111
import { schemeSet3 } from 'd3-scale-chromatic';
12-
import { onHover, onHoverExit, save } from '../actions/actions';
13-
import { useStoreContext } from '../store';
12+
import { onHover, onHoverExit, save } from '../../../actions/actions';
13+
import { useStoreContext } from '../../../store';
1414

1515
/* TYPESCRIPT */
1616

src/app/components/BarGraphComparison.tsx renamed to src/app/components/StateRoute/PerformanceVisx/BarGraphComparison.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { makeStyles } from '@material-ui/core/styles';
1313
import Select from '@material-ui/core/Select';
1414
import MenuItem from '@material-ui/core/MenuItem';
1515
import FormControl from '@material-ui/core/FormControl';
16-
import { onHover, onHoverExit, deleteSeries, setCurrentTabInApp } from '../actions/actions';
17-
import { useStoreContext } from '../store';
16+
import { onHover, onHoverExit, deleteSeries, setCurrentTabInApp } from '../../actions/actions';
17+
import { useStoreContext } from '../../store';
1818

1919
/* TYPESCRIPT */
2020

src/app/components/PerformanceVisx.tsx renamed to src/app/components/StateRoute/PerformanceVisx/PerformanceVisx.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import RenderingFrequency from './RenderingFrequency';
1313
import BarGraph from './BarGraph';
1414
import BarGraphComparison from './BarGraphComparison';
1515
import BarGraphComparisonActions from './BarGraphComparisonActions';
16-
import { useStoreContext } from '../store';
17-
import { setCurrentTabInApp } from '../actions/actions';
16+
import { useStoreContext } from '../../../store';
17+
import { setCurrentTabInApp } from '../../../actions/actions';
1818

1919

2020
interface BarStackProps {

src/app/components/RenderingFrequency.tsx renamed to src/app/components/StateRoute/PerformanceVisx/RenderingFrequency.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
/* eslint-disable jsx-a11y/no-static-element-interactions */
33
/* eslint-disable react/prop-types */
44
import React, { useState, useEffect } from 'react';
5-
import { onHover, onHoverExit, setCurrentTabInApp } from '../actions/actions';
6-
import { useStoreContext } from '../store';
5+
import { onHover, onHoverExit, setCurrentTabInApp } from '../../../actions/actions';
6+
import { useStoreContext } from '../../../store';
77

88
const RenderingFrequency = props => {
99
const perfData = props.data;

src/app/components/StateRoute.tsx renamed to src/app/components/StateRoute/StateRoute.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import {
1414
} from 'react-router-dom';
1515
import { ParentSize } from '@visx/responsive';
1616
import Tree from './Tree';
17-
import ComponentMap from './ComponentMap';
18-
import { changeView, changeSlider } from '../actions/actions';
19-
import { useStoreContext } from '../store';
20-
import PerformanceVisx from './PerformanceVisx';
21-
import WebMetrics from './WebMetrics';
17+
import ComponentMap from './ComponentMap/ComponentMap';
18+
import { changeView, changeSlider } from '../../actions/actions';
19+
import { useStoreContext } from '../../store';
20+
import PerformanceVisx from './PerformanceVisx/PerformanceVisx';
21+
import WebMetrics from '../WebMetrics';
2222

2323
const History = require('./History').default;
2424

0 commit comments

Comments
 (0)