Skip to content

Commit 94b3671

Browse files
committed
took out .tsx from imports
1 parent 200b3d9 commit 94b3671

File tree

11 files changed

+22
-23
lines changed

11 files changed

+22
-23
lines changed

src/app/components/Action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { changeView, changeSlider } from '../actions/actions.ts';
2+
import { changeView, changeSlider } from '../actions/actions';
33

44
interface ActionProps {
55
selected: boolean;

src/app/components/DiffRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import {
33
MemoryRouter as Router, Route, NavLink, Switch,
44
} from 'react-router-dom';
5-
import Diff from './Diff.tsx';
5+
import Diff from './Diff';
66

77

88
const DiffRoute = (props: {snapshot: {state: string | object; children?:[]}}) => (

src/app/components/MainSlider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React from 'react';
44
import Slider from 'rc-slider';
55
import Tooltip from 'rc-tooltip';
6-
import { changeSlider, pause } from '../actions/actions.ts';
6+
import { changeSlider, pause } from '../actions/actions';
77
import { useStoreContext } from '../store';
88

99
const { Handle } = Slider;

src/app/components/StateRoute.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import React from 'react';
44
import { MemoryRouter as Router, Route, NavLink, Switch } from 'react-router-dom';
55

6-
import Chart from './Chart.tsx';
7-
import Tree from './Tree.tsx';
8-
import PerfView from './PerfView.tsx';
9-
import ErrorHandler from './ErrorHandler.tsx';
6+
import Chart from './Chart';
7+
import Tree from './Tree';
8+
import PerfView from './PerfView';
9+
import ErrorHandler from './ErrorHandler';
1010

1111
const NO_STATE_MSG = 'No state change detected. Trigger an event to change state';
1212
// eslint-disable-next-line react/prop-types

src/app/components/SwitchApp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Select from 'react-select';
3-
import { useStoreContext } from '../store.tsx';
4-
import { setTab } from '../actions/actions.ts';
3+
import { useStoreContext } from '../store';
4+
import { setTab } from '../actions/actions';
55

66

77
const SwitchAppDropdown = () => {

src/app/containers/ActionContainer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
/* eslint-disable no-inner-declarations */
33
import React from 'react';
44
import { diff } from 'jsondiffpatch';
5-
import Action from '../components/Action.tsx';
5+
import Action from '../components/Action';
66

7-
import { emptySnapshots, changeView, changeSlider } from '../actions/actions.ts';
8-
import { useStoreContext } from '../store.tsx';
7+
import { emptySnapshots, changeView, changeSlider } from '../actions/actions';
8+
import { useStoreContext } from '../store';
99

1010
const resetSlider = () => {
1111
const slider = document.querySelector('.rc-slider-handle');

src/app/containers/ButtonsContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import { importSnapshots, toggleMode } from '../actions/actions.ts';
4-
import { useStoreContext } from '../store.tsx';
3+
import { importSnapshots, toggleMode } from '../actions/actions';
4+
import { useStoreContext } from '../store';
55

66
function exportHandler(snapshots:[]) {
77
// create invisible download anchor link

src/app/containers/HeadContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import SwitchAppDropdown from '../components/SwitchApp.tsx';
2+
import SwitchAppDropdown from '../components/SwitchApp';
33

44
function HeadContainer() {
55
return (

src/app/containers/StateContainer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {
55
NavLink,
66
Switch,
77
} from 'react-router-dom';
8-
import StateRoute from '../components/StateRoute.tsx';
9-
import DiffRoute from '../components/DiffRoute.tsx';
8+
import StateRoute from '../components/StateRoute';
9+
import DiffRoute from '../components/DiffRoute';
1010

1111
interface StateContainerProps {
12-
snapshot:{state?:object|string, children?:[]};
12+
snapshot:{state:object|string, children?:[]};
1313
hierarchy:object;
1414
snapshots:[];
1515
viewIndex:number;

src/app/containers/TravelContainer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { useState } from 'react';
2-
import MainSlider from '../components/MainSlider.tsx';
3-
import Dropdown from '../components/Dropdown.tsx';
2+
import MainSlider from '../components/MainSlider';
3+
import Dropdown from '../components/Dropdown';
44
import {
55
playForward, pause, startPlaying, moveForward, moveBackward, resetSlider,
6-
} from '../actions/actions.ts';
7-
import { useStoreContext } from '../store.tsx';
6+
} from '../actions/actions';
7+
import { useStoreContext } from '../store';
88

99
const speeds = [
1010
{ value: 2000, label: '0.5x' },

0 commit comments

Comments
 (0)