Skip to content

Commit 0dcb068

Browse files
committed
cleaned up some files
1 parent 60abeaa commit 0dcb068

File tree

17 files changed

+13
-89
lines changed

17 files changed

+13
-89
lines changed

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

docker-compose.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/app/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import MainContainer from './containers/MainContainer';
1111
function App(): JSX.Element {
1212
return (
1313
<Router>
14-
{/* we wrap our application with the <Router> tag so that all components that are nested will have the react-router context */}
1514
<MainContainer />
1615
</Router>
1716
);

src/app/components/Actions/RouteDescription.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import Slider from 'rc-slider';
32
import VerticalSlider from '../TimeTravel/VerticalSlider';
43

54
/*

src/app/components/Buttons/Tutorial.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Component } from 'react';
77
import 'intro.js/introjs.css';
88
import { TutorialProps, TutorialState, StepsObj } from '../../FrontendTypes';
99
import { Button } from '@mui/material';
10-
const { Steps } = require('intro.js-react'); //Must be required in. This enables compatibility with TS. If imported in, throws ts error of not rendering steps as a class component correctly. The package 'intro.js-react' is small React wrapper around Intro.js. The wrapper provides support for both steps and hints. https://introjs.com/docs/
10+
const { Steps } = require('intro.js-react');
1111
import { setCurrentTabInApp, tutorialSaveSeriesToggle } from '../../slices/mainSlice';
1212
import { HelpCircle } from 'lucide-react';
1313

src/app/components/StateRoute/AxMap/Ax.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useRef } from 'react';
2-
import { useDispatch, useSelector } from 'react-redux';
2+
import { useDispatch } from 'react-redux';
33
import { Group } from '@visx/group';
44
import { hierarchy, Tree } from '@visx/hierarchy';
55
import { LinearGradient } from '@visx/gradient';
@@ -9,7 +9,7 @@ import { useTooltip, useTooltipInPortal, defaultStyles } from '@visx/tooltip';
99
import ToolTipDataDisplay from './ToolTipDataDisplay';
1010
import { ToolTipStyles } from '../../../FrontendTypes';
1111
import { localPoint } from '@visx/event';
12-
import { toggleExpanded, setCurrentTabInApp } from '../../../slices/mainSlice';
12+
import { toggleExpanded } from '../../../slices/mainSlice';
1313

1414
const defaultMargin = {
1515
top: 30,
@@ -74,7 +74,7 @@ export default function AxTree(props) {
7474
};
7575

7676
const [orientation, setOrientation] = useState('horizontal');
77-
const [linkType, setLinkType] = useState('step');
77+
const [linkType, setLinkType] = useState('diagonal');
7878
const [stepPercent, setStepPercent] = useState(0.0);
7979

8080
const innerWidth: number = totalWidth - margin.left - margin.right;
@@ -408,7 +408,7 @@ export default function AxTree(props) {
408408
</div>
409409
<div>
410410
{/* Ax Node Info below names the tooltip title because of how its passed to the ToolTipDataDisplay container*/}
411-
<ToolTipDataDisplay containerName='Ax Node Info' dataObj={tooltipData} />
411+
<ToolTipDataDisplay containerName='Accessbility' dataObj={tooltipData} />
412412
</div>
413413
</div>
414414
</TooltipInPortal>

src/app/components/StateRoute/AxMap/ToolTipDataDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const colors = {
1717
base06: '#b9b6b0',
1818
base07: '#e7e9db',
1919
base08: '#ef6155',
20-
base09: '#824508', //base09 is orange for booleans and numbers. This base in particular fails to match the entered color.
20+
base09: '#824508',
2121
base0A: '#fec418',
2222
base0B: '#48b685',
2323
base0C: '#5bc4bf',

src/app/components/StateRoute/AxMap/useForceUpdate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { useState } from 'react';
22

33
export default function useForceUpdate() {
44
const [, setValue] = useState(0);
5-
return () => setValue((value) => value + 1); // update state to force render
5+
return () => setValue((value) => value + 1);
66
}

src/app/components/TimeTravel/VerticalSlider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import Slider from 'rc-slider';
33
import Tooltip from 'rc-tooltip';
4-
import { changeSlider, pause } from '../../slices/mainSlice';
4+
import { changeSlider } from '../../slices/mainSlice';
55
import { useDispatch, useSelector } from 'react-redux';
66
import { HandleProps, MainSliderProps, MainState, RootState } from '../../FrontendTypes';
77

0 commit comments

Comments
 (0)