diff --git a/apps/portal/src/components/questions/QuestionSearchBar.tsx b/apps/portal/src/components/questions/QuestionSearchBar.tsx index 917c342d..bafcb3cb 100644 --- a/apps/portal/src/components/questions/QuestionSearchBar.tsx +++ b/apps/portal/src/components/questions/QuestionSearchBar.tsx @@ -9,10 +9,14 @@ import SortOptionsSelect from './SortOptionsSelect'; export type QuestionSearchBarProps = SortOptionsSelectProps & { onFilterOptionsToggle: () => void; + onQueryChange: (query: string) => void; + query: string; }; export default function QuestionSearchBar({ onFilterOptionsToggle, + onQueryChange, + query, ...sortOptionsSelectProps }: QuestionSearchBarProps) { return ( @@ -24,6 +28,10 @@ export default function QuestionSearchBar({ placeholder="Search by content" startAddOn={MagnifyingGlassIcon} startAddOnType="icon" + value={query} + onChange={(value) => { + onQueryChange(value); + }} />
{content} diff --git a/apps/portal/src/components/questions/forms/CreateQuestionEncounterForm.tsx b/apps/portal/src/components/questions/forms/CreateQuestionEncounterForm.tsx index b346b7b4..5e5f67c4 100644 --- a/apps/portal/src/components/questions/forms/CreateQuestionEncounterForm.tsx +++ b/apps/portal/src/components/questions/forms/CreateQuestionEncounterForm.tsx @@ -42,7 +42,9 @@ export default function CreateQuestionEncounterForm({ return (
I saw this question at
++ I saw this question {step <= 1 ? 'at' : step === 2 ? 'for' : 'on'} +
{step === 0 && (