mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-07-30 09:48:47 -04:00
Refactor Filters button: relocate within Row for better layout consistency and remove redundant implementation.
This commit is contained in:
@@ -168,6 +168,19 @@ export const Search = forwardRef<
|
||||
/>
|
||||
|
||||
<Row className="gap-1.5 shrink-0 items-center">
|
||||
<Button
|
||||
color="gray-white"
|
||||
size="sm"
|
||||
className={clsx(
|
||||
'!h-10 !rounded-full border border-canvas-200',
|
||||
highlightFilters &&
|
||||
'border-primary-500 ring-2 ring-primary-300 bg-primary-50 text-primary-700',
|
||||
)}
|
||||
onClick={handleOpenFilters}
|
||||
>
|
||||
<IoFilterSharp className="h-4 w-4 sm:mr-1.5" />
|
||||
<span className="hidden sm:inline">{t('search.filters', 'Filters')}</span>
|
||||
</Button>
|
||||
<Select
|
||||
ref={sortSelectRef}
|
||||
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => {
|
||||
@@ -189,19 +202,6 @@ export const Search = forwardRef<
|
||||
)}
|
||||
<option value="last_online_time">{t('common.active', 'Active')}</option>
|
||||
</Select>
|
||||
<Button
|
||||
color="gray-white"
|
||||
size="sm"
|
||||
className={clsx(
|
||||
'!h-10 !rounded-full border border-canvas-200',
|
||||
highlightFilters &&
|
||||
'border-primary-500 ring-2 ring-primary-300 bg-primary-50 text-primary-700',
|
||||
)}
|
||||
onClick={handleOpenFilters}
|
||||
>
|
||||
<IoFilterSharp className="h-4 w-4 sm:mr-1.5" />
|
||||
<span className="hidden sm:inline">{t('search.filters', 'Filters')}</span>
|
||||
</Button>
|
||||
<GetNotifiedButton
|
||||
filters={filters}
|
||||
locationFilterProps={locationFilterProps}
|
||||
|
||||
Reference in New Issue
Block a user