Skip to content

Commit 655842a

Browse files
committed
basic clean up of all the components and changed the style of the linkControls to match the UI style
> > Co-authored-by: Nkmai <[email protected]> Co-authored-by: lind-tania <[email protected]> Co-authored-by: rtviner <[email protected]> Co-authored-by: caitlinchan23 <[email protected]>
1 parent ea1f53a commit 655842a

File tree

7 files changed

+9
-19
lines changed

7 files changed

+9
-19
lines changed

src/app/components/History.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import React, { Component, useEffect, useState } from 'react';
33
import * as d3 from 'd3';
44
import LegendKey from './legend';
5-
//added back line 6 , 160- 12
65
import { changeView, changeSlider } from '../actions/actions';
76
/**
87
* @var colors: Colors array for the diffrerent node branches, each color is for a different branch
@@ -45,7 +44,7 @@ function History(props: Record<string, unknown>) {
4544
let root = JSON.parse(JSON.stringify(hierarchy));
4645
let isRecoil = false;
4746

48-
let HistoryRef = React.createRef(root); //React.createRef(root);
47+
let HistoryRef = React.createRef(root);
4948
useEffect(() => {
5049
maked3Tree();
5150
}, [root]);
@@ -78,7 +77,6 @@ function History(props: Record<string, unknown>) {
7877

7978
// d3.hierarchy constructs a root node from the specified hierarchical data
8079
// (our object titled dataset), which must be an object representing the root node
81-
8280
const hierarchy = d3.hierarchy(root);
8381
const tree = d3
8482
.tree()
@@ -252,7 +250,6 @@ function History(props: Record<string, unknown>) {
252250
ref={HistoryRef}
253251
className="history-d3-div"
254252
id="historyContainer"
255-
// position="absolute"
256253
/>
257254
</div>
258255
</>

src/app/components/LinkControls.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ const controlStyles = {
77
};
88

99
const dropDownStyle = {
10+
// margin: '0.5em',
11+
// fontSize: '12px',
12+
// borderRadius: '4px',
13+
// backgroundColor: 'rgb(231, 231, 231)'
1014
margin: '0.5em',
1115
fontSize: '12px',
1216
borderRadius: '4px',
13-
backgroundColor: 'rgb(231, 231, 231)'
17+
backgroundColor: '#242529',
18+
color:'white',
19+
padding:'2px'
1420
}
1521

1622
type Props = {

src/app/components/MainSlider.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
3-
/* eslint-disable react/jsx-props-no-spreading */
4-
/* eslint-disable react/prop-types */
51
import React from 'react';
62
import Slider from 'rc-slider';
73
import Tooltip from 'rc-tooltip';

src/app/components/PerformanceVisx.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ const PerformanceVisx = (props: BarStackProps) => {
100100
// filter and structure incoming data for VISX
101101
const data = getPerfMetrics(snapshots, getSnapshotIds(hierarchy));
102102

103-
// style={{ position: 'relative' }}
104103
// if performance tab is too small it will not return VISX component
105104
return (
106105
<div className='renderTab'>

src/app/components/SwitchApp.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
31
import React from 'react';
42
import Select from 'react-select';
53
import { useStoreContext } from '../store';

src/app/components/Tree.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/* eslint-disable arrow-body-style */
2-
/* eslint-disable max-len */
3-
/* eslint-disable @typescript-eslint/no-explicit-any */
4-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
5-
/* eslint-disable @typescript-eslint/ban-types */
1+
62
import React from 'react';
73
import JSONTree from 'react-json-tree';
84

src/app/components/getLinkComponent.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import {
42
LinkHorizontal,
53
LinkVertical,

0 commit comments

Comments
 (0)