добавлены новые хуки и обработчики в Header, улучшен ModalContainer, добавлены сортировки в FavoritesPage и исправлены стили в различных компонентах.

This commit is contained in:
2025-05-14 18:49:04 +05:00
parent 385878aa84
commit fe17aed20a
13 changed files with 219 additions and 181 deletions
+4 -4
View File
@@ -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)