добавлены новые хуки и обработчики в Header, улучшен ModalContainer, добавлены сортировки в FavoritesPage и исправлены стили в различных компонентах.
This commit is contained in:
@@ -5,7 +5,7 @@ import clsx from "clsx";
|
||||
function UnitTypesSelect({
|
||||
unitTypes,
|
||||
onSelect,
|
||||
defaultSelected = [],
|
||||
defaultSelected,
|
||||
}: {
|
||||
unitTypes: string[];
|
||||
onSelect: (unitTypes: string[]) => void;
|
||||
@@ -23,13 +23,13 @@ function UnitTypesSelect({
|
||||
{unitTypes.map((unitType) => (
|
||||
<p
|
||||
key={unitType}
|
||||
onClick={() => {
|
||||
onClick={() =>
|
||||
setSelectedUnitTypes((prev) =>
|
||||
prev.includes(unitType)
|
||||
? prev.filter((type) => type !== unitType)
|
||||
: [...prev, unitType]
|
||||
);
|
||||
}}
|
||||
)
|
||||
}
|
||||
className={clsx(
|
||||
"2xl:px-[1.389vw] 2xl:py-[0.833vw] px-5 py-3 2xl:rounded-[2.778vw] rounded-[40px] 2xl:ring-[0.069vw] ring transition-[box-shadow] cursor-pointer text-s",
|
||||
selectedUnitTypes.includes(unitType)
|
||||
|
||||
Reference in New Issue
Block a user