Stylizacja i poprawki w układzie

This commit is contained in:
dm
2025-11-26 08:00:00 +01:00
parent d3040f4917
commit 284009d411
56 changed files with 328 additions and 621 deletions

View File

@@ -1,17 +1,17 @@
import "../../styles/offers/offers-switches.css";
// import "../../styles/offers/offers-switches.css";
export default function OffersSwitches({ switches, selected, onSwitch }) {
if (!switches.length) return null;
return (
<div class="fuz-switches-wrapper">
<div class="f-switches-wrapper">
{switches.map((sw) => (
<div class="fuz-switch-block">
<div class="fuz-switch-group">
<div class="f-switch-box">
<div class="f-switch-group">
{sw.opcje.map((op) => (
<button
type="button"
class={`fuz-switch ${selected[sw.id] === op.id ? "active" : ""
class={`f-switch ${selected[sw.id] === op.id ? "active" : ""
}`}
onClick={() => onSwitch(sw.id, op.id)}
title={sw.title}