Skip to content

Commit 1348597

Browse files
authored
Merge pull request #19 from oslabs-beta/rootNodeDropdown
root node search bar swapped for a drop down
2 parents 6cb86ac + 89f254d commit 1348597

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/app/components/StateRoute/ComponentMap/LinkControls.tsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,16 @@ export default function LinkControls({
110110
{/* Controls for the select selections. */}
111111
<label> Select:</label>
112112
&nbsp;
113-
<input
113+
<select
114114
id="selectInput"
115-
list="nodeOptions"
116-
type="text"
117115
name="nodeOptions"
118116
onChange={e => setSelectedNode(e.target.value)}
119117
style={dropDownStyle}
120-
/>
121-
<datalist id="nodeOptions">
118+
>
122119
{nodeList.map(node => (
123-
<option key={node.name} value={node.name}>{node.name}</option>
120+
node.children.length > 0 && <option key={node.name} value={node.name}>{node.name}</option>
124121
))}
125-
</datalist>
122+
</select>
126123

127124
{/* This is the slider control for the step option */}
128125
{linkType === 'step' && layout !== 'polar' && (

www/public/RTScreen.png

706 KB
Loading

www/public/new-reactime.gif

-5.57 MB
Binary file not shown.

www/src/pages/components/LandingPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default function LandingPage() {
137137
<div className="relative -mr-40 pl-4 sm:mx-auto sm:max-w-3xl sm:px-0 lg:h-full lg:max-w-none lg:pl-12">
138138
<img
139139
className="w-full rounded-md shadow-xl ring-1 ring-black ring-opacity-5 lg:h-full lg:w-auto lg:max-w-none"
140-
src="https://i.imgur.com/CyIU9Td.jpg"
140+
src="/RTScreen.png"
141141
alt=""
142142
/>
143143
</div>

0 commit comments

Comments
 (0)