refactor: cleanup part 4

This commit is contained in:
trafficlunar 2025-04-14 18:11:17 +01:00
parent f00c998c30
commit 9e36944219
4 changed files with 14 additions and 14 deletions

View file

@ -28,7 +28,7 @@ export default function Carousel({ images, className }: Props) {
return (
<div className="relative w-full h-fit">
<div className={`overflow-hidden rounded-xl bg-zinc-300 border-2 border-zinc-300 ${className}`} ref={emblaRef}>
<div className={`overflow-hidden rounded-xl bg-zinc-300 border-2 border-zinc-300 ${className ?? ""}`} ref={emblaRef}>
<div className="flex">
{images.map((src, index) => (
<div key={index} className="flex-[0_0_100%]">

View file

@ -1,9 +1,9 @@
"use client";
import { redirect, useSearchParams } from "next/navigation";
import { useSearchParams } from "next/navigation";
import Link from "next/link";
import { useEffect, useMemo, useState } from "react";
import { useMemo } from "react";
import { Icon } from "@iconify/react";
interface Props {