|
|
@ -47,8 +47,9 @@ export default function CreateQuestionEncounterForm({
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<CompanyTypeahead
|
|
|
|
<CompanyTypeahead
|
|
|
|
isLabelHidden={true}
|
|
|
|
isLabelHidden={true}
|
|
|
|
placeholder="Other company"
|
|
|
|
placeholder="Company"
|
|
|
|
suggestedCount={3}
|
|
|
|
// TODO: Fix suggestions and set count back to 3
|
|
|
|
|
|
|
|
suggestedCount={0}
|
|
|
|
// @ts-ignore TODO(questions): handle potentially null value.
|
|
|
|
// @ts-ignore TODO(questions): handle potentially null value.
|
|
|
|
onSelect={({ value: company }) => {
|
|
|
|
onSelect={({ value: company }) => {
|
|
|
|
setSelectedCompany(company);
|
|
|
|
setSelectedCompany(company);
|
|
|
@ -64,8 +65,8 @@ export default function CreateQuestionEncounterForm({
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<LocationTypeahead
|
|
|
|
<LocationTypeahead
|
|
|
|
isLabelHidden={true}
|
|
|
|
isLabelHidden={true}
|
|
|
|
placeholder="Other location"
|
|
|
|
placeholder="Location"
|
|
|
|
suggestedCount={3}
|
|
|
|
suggestedCount={0}
|
|
|
|
// @ts-ignore TODO(questions): handle potentially null value.
|
|
|
|
// @ts-ignore TODO(questions): handle potentially null value.
|
|
|
|
onSelect={(location) => {
|
|
|
|
onSelect={(location) => {
|
|
|
|
setSelectedLocation(location);
|
|
|
|
setSelectedLocation(location);
|
|
|
@ -81,8 +82,8 @@ export default function CreateQuestionEncounterForm({
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<RoleTypeahead
|
|
|
|
<RoleTypeahead
|
|
|
|
isLabelHidden={true}
|
|
|
|
isLabelHidden={true}
|
|
|
|
placeholder="Other role"
|
|
|
|
placeholder="Role"
|
|
|
|
suggestedCount={3}
|
|
|
|
suggestedCount={0}
|
|
|
|
// @ts-ignore TODO(questions): handle potentially null value.
|
|
|
|
// @ts-ignore TODO(questions): handle potentially null value.
|
|
|
|
onSelect={({ value: role }) => {
|
|
|
|
onSelect={({ value: role }) => {
|
|
|
|
setSelectedRole(role);
|
|
|
|
setSelectedRole(role);
|
|
|
|