From 145d01c8e49ff37fea2f222af2244bdc2880735e Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Sat, 12 Jul 2025 16:50:34 +0200 Subject: [PATCH] cleanup --- apps/web/src/components/landing/handlebars.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/web/src/components/landing/handlebars.tsx b/apps/web/src/components/landing/handlebars.tsx index 832a923..36705e9 100644 --- a/apps/web/src/components/landing/handlebars.tsx +++ b/apps/web/src/components/landing/handlebars.tsx @@ -1,4 +1,5 @@ "use client"; + import React, { useState, useRef, useEffect } from "react"; import { motion, useMotionValue, useTransform, PanInfo } from "motion/react"; @@ -9,12 +10,12 @@ interface HandlebarsProps { onRangeChange?: (left: number, right: number) => void; } -export const Handlebars = ({ +export function Handlebars({ children, minWidth = 50, maxWidth = 400, onRangeChange, -}: HandlebarsProps) => { +}: HandlebarsProps) { const [leftHandle, setLeftHandle] = useState(0); const [rightHandle, setRightHandle] = useState(maxWidth); const [contentWidth, setContentWidth] = useState(maxWidth); @@ -93,9 +94,9 @@ export const Handlebars = ({ className="relative -rotate-[2.76deg] max-w-[250px] md:max-w-[454px] mt-2" style={{ width: contentWidth }} > -
+
-
+
-
+