[portal][misc] s/placeHolder/placeholder

pull/459/head
Yangshun Tay 2 years ago
parent f7ff20bb22
commit 576f0292a1

@ -9,7 +9,7 @@ type Props = Readonly<{
errorMessage?: string;
isLabelHidden?: boolean;
onSelect: (option: TypeaheadOption | null) => void;
placeHolder?: string;
placeholder?: string;
required?: boolean;
}>;
@ -17,7 +17,7 @@ export default function CompaniesTypeahead({
disabled,
onSelect,
isLabelHidden,
placeHolder,
placeholder,
required,
}: Props) {
const [query, setQuery] = useState('');
@ -44,7 +44,7 @@ export default function CompaniesTypeahead({
value: id,
})) ?? []
}
placeholder={placeHolder}
placeholder={placeholder}
required={required}
textSize="inherit"
onQueryChange={setQuery}

@ -8,7 +8,7 @@ type Props = Readonly<{
disabled?: boolean;
isLabelHidden?: boolean;
onSelect: (option: TypeaheadOption | null) => void;
placeHolder?: string;
placeholder?: string;
required?: boolean;
}>;
@ -16,7 +16,7 @@ export default function JobTitlesTypeahead({
disabled,
onSelect,
isLabelHidden,
placeHolder,
placeholder,
required,
}: Props) {
const [query, setQuery] = useState('');
@ -39,7 +39,7 @@ export default function JobTitlesTypeahead({
noResultsMessage="No available job titles."
nullable={true}
options={options}
placeholder={placeHolder}
placeholder={placeholder}
required={required}
textSize="inherit"
onQueryChange={setQuery}

@ -36,14 +36,14 @@ export default function OffersHomePage() {
<div className="flex items-center space-x-4">
<JobTitlesTypeahead
isLabelHidden={true}
placeHolder="Software Engineer"
placeholder="Software Engineer"
// @ts-ignore TODO(offers): handle potentially null value.
onSelect={({ value }) => setjobTitleFilter(value)}
/>
<span>in</span>
<CompaniesTypeahead
isLabelHidden={true}
placeHolder="All Companies"
placeholder="All Companies"
// @ts-ignore TODO(offers): handle potentially null value.
onSelect={({ value }) => setCompanyFilter(value)}
/>

Loading…
Cancel
Save