Skip to content

Commit 85b225c

Browse files
committed
Cleaned up code in LinkControls.tsx
1 parent 0155bfc commit 85b225c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/app/components/LinkControls.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { List } from '@material-ui/core';
21
import React from 'react';
3-
import snapshots from './snapshots';
42
// Font size of the Controls label and Dropdowns
53
const controlStyles = {
64
fontSize: '12px',
@@ -53,10 +51,8 @@ const collectNodes = node => {
5351

5452
export default function LinkControls({
5553
layout,
56-
orientation,
5754
linkType,
5855
stepPercent,
59-
selectedNode,
6056
setLayout,
6157
setOrientation,
6258
setLinkType,
@@ -71,7 +67,7 @@ export default function LinkControls({
7167

7268
{/* Controls for the layout selection */}
7369
<label>Layout:</label>
74-
&nbsp;
70+
&nbsp; {/*This is a non-breaking space - Prevents an automatic line break at this position */}
7571
<select
7672
onClick={e => e.stopPropagation()}
7773
onChange={e => setLayout(e.target.value)}
@@ -89,7 +85,6 @@ export default function LinkControls({
8985
<select
9086
onClick={e => e.stopPropagation()}
9187
onChange={e => setOrientation(e.target.value)}
92-
// value={orientation}/
9388
disabled={layout === 'polar'}
9489
style={dropDownStyle}
9590
>
@@ -113,7 +108,7 @@ export default function LinkControls({
113108

114109
{/* Controls for the select selections. */}
115110
<label> Select:</label>
116-
&nbsp; {/*This is a non-breaking space - Prevents an automatic line break at this position */}
111+
&nbsp;
117112
<input id='selectInput' list='nodeOptions' type='text' name="nodeOptions"
118113
onChange={e => setSelectedNode(e.target.value)}
119114
style={dropDownStyle}

0 commit comments

Comments
 (0)