-
Notifications
You must be signed in to change notification settings - Fork 47
Conversation
src/view/components/Dropdown.tsx
Outdated
const parsedPath = parsePath(props.lastChosen); | ||
const defaultText = | ||
props.lastChosen !== "" | ||
? `Currently running: ${parsedPath[1]}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this will be user facing, should we make it a constant and localize it?
src/view/components/Simulator.tsx
Outdated
@@ -119,6 +142,16 @@ class Simulator extends React.Component<any, IState> { | |||
const image = this.state.play_button ? StopLogo : PlayLogo; | |||
return ( | |||
<div className="simulator"> | |||
<div className="file-selector"> | |||
<Dropdown | |||
label={"hi"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to change the placeholder label
? Same with styleLabel
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small suggestions.
src/view/components/Simulator.tsx
Outdated
@@ -174,6 +210,10 @@ class Simulator extends React.Component<any, IState> { | |||
} | |||
} | |||
|
|||
protected onSelectBlur(event: React.FocusEvent<HTMLSelectElement>) { | |||
console.log("BLURR", event.currentTarget.value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be removed
console.log("BLURR", event.currentTarget.value); |
}); | ||
break; | ||
case "current-file": | ||
console.log("Setting current file", message.state.running_file); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be removed?
console.log("Setting current file", message.state.running_file); |
Description:
This PR adds a file dropdown on the simulator so users can choose a visible file to run
Type of change
Please delete options that are not relevant.
Testing:
Checklist: