|
|
@ -20,8 +20,8 @@ export default function QuestionSearchBar<
|
|
|
|
sortValue,
|
|
|
|
sortValue,
|
|
|
|
}: QuestionSearchBarProps<SortOptions>) {
|
|
|
|
}: QuestionSearchBarProps<SortOptions>) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="flex items-end gap-2">
|
|
|
|
<div className="flex items-center gap-2">
|
|
|
|
<div className="flex-1">
|
|
|
|
<div className="flex-1 pt-1">
|
|
|
|
<TextInput
|
|
|
|
<TextInput
|
|
|
|
isLabelHidden={true}
|
|
|
|
isLabelHidden={true}
|
|
|
|
label="Search by content"
|
|
|
|
label="Search by content"
|
|
|
@ -30,9 +30,10 @@ export default function QuestionSearchBar<
|
|
|
|
startAddOnType="icon"
|
|
|
|
startAddOnType="icon"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<span className="pl-3">Sort by</span>
|
|
|
|
<Select
|
|
|
|
<Select
|
|
|
|
display="inline"
|
|
|
|
display="inline"
|
|
|
|
label="Sort by"
|
|
|
|
label=""
|
|
|
|
options={sortOptions}
|
|
|
|
options={sortOptions}
|
|
|
|
value={sortValue}
|
|
|
|
value={sortValue}
|
|
|
|
onChange={onSortChange}></Select>
|
|
|
|
onChange={onSortChange}></Select>
|
|
|
|