Skip to content

Commit

Permalink
removing mobile logic in snow
Browse files Browse the repository at this point in the history
  • Loading branch information
yceballost committed Nov 24, 2024
1 parent 793152c commit cb2d9de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/advent-calendar-2024/components/snow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useScreenSize } from "@telefonica/mistica";

const Snow = () => {
const [images, setImages] = useState<HTMLImageElement[]>([]);
const isMobile = useScreenSize();

useEffect(() => {
let isMounted = true; // Controla si el componente sigue montado
Expand Down Expand Up @@ -56,9 +55,9 @@ const Snow = () => {
zIndex: "9999999",
}}
color="#EEF0FB"
radius={isMobile ? [30, 30] : [50, 50]}
radius={[45, 45]}
speed={[1.0, 2.0]} // Velocidad de los copos
snowflakeCount={isMobile ? 8 : 20}
snowflakeCount={20}
images={images} // Pasamos las imágenes cargadas al componente
/>
);
Expand Down

0 comments on commit cb2d9de

Please sign in to comment.