Skip to content

Commit 4ad4087

Browse files
committed
Link in Map working History tab removed
1 parent 7cdc126 commit 4ad4087

File tree

8 files changed

+427
-413
lines changed

8 files changed

+427
-413
lines changed

src/app/components/ComponentMap.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import { pointRadial } from 'd3-shape';
77
import useForceUpdate from './useForceUpdate';
88
import LinkControls from './LinkControls';
99
import getLinkComponent from './getLinkComponent';
10-
import { onHover, onHoverExit } from '../actions/actions'
11-
import { useStoreContext } from '../store'
10+
import { onHover, onHoverExit } from '../actions/actions';
11+
import { useStoreContext } from '../store';
12+
1213

1314
const root = hierarchy({
1415
name: 'root',
@@ -100,6 +101,7 @@ export default function ComponentMap({
100101
setStepPercent={setStepPercent}
101102
/>
102103

104+
103105
<svg width={totalWidth} height={totalHeight}>
104106
<LinearGradient id='links-gradient' from='#fd9b93' to='#fe6e9e' />
105107
<rect width={totalWidth} height={totalHeight} rx={14} fill='#242529'/>
@@ -147,6 +149,7 @@ export default function ComponentMap({
147149
<circle
148150
r={12}
149151
fill="url('#links-gradient')"
152+
stroke="#e7e7e7"
150153
onClick={() => {
151154
node.data.isExpanded = !node.data.isExpanded;
152155
// console.log(node);
@@ -163,7 +166,8 @@ export default function ComponentMap({
163166
x={-width / 2}
164167
fill='#272b4d'
165168
//changed all the node.data.children to node.children and was causing pb rendering and expanding
166-
stroke={node.children ? '#03c0dc' : '#26deb0'}
169+
// stroke={node.children ? '#03c0dc' : '#26deb0'}
170+
stroke={node.children ? '#62d6fb' : '#F5F47E'}
167171
strokeWidth={1}
168172
strokeDasharray={node.children ? '0' : '2,2'}
169173
strokeOpacity={node.children ? 1 : 0.6}
@@ -200,8 +204,8 @@ export default function ComponentMap({
200204
node.depth === 0
201205
? '#71248e'
202206
: node.children
203-
? 'white'
204-
: '#26deb0'
207+
? '#B1EDE8'
208+
: '#F5F47E'
205209
}
206210
>
207211
{node.data.name}

0 commit comments

Comments
 (0)