Skip to content

Commit

Permalink
use form tag
Browse files Browse the repository at this point in the history
  • Loading branch information
timrobinson33 committed Apr 7, 2021
1 parent 955bc5c commit ce2b061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import './App.css';
import './App.css'
import _ from 'lodash'

const divide = '\u00f7'
Expand Down Expand Up @@ -183,7 +183,7 @@ function MainView() {
}

return (
<div>
<form>
<div>
<label>Drug: </label>
<select value={drugIdx} disabled={showResults} onChange={e => selectDrug(Number(e.target.value))}>
Expand Down Expand Up @@ -218,7 +218,7 @@ function MainView() {
<Results drugIdx={drugIdx} strengthIdx={strengthIdx} prescribedDose={prescribedDose} numStatDoses={numStatDoses} statDoseStrength={statDoseStrength} />}
<button onClick={() => { selectDrug(0) }}>Reset</button>
</>}
</div>
</form>
)
}

Expand Down

0 comments on commit ce2b061

Please sign in to comment.