Skip to content

Commit

Permalink
removed cn function from code
Browse files Browse the repository at this point in the history
Signed-off-by: ab7022 <[email protected]>
  • Loading branch information
ab7022 committed Dec 19, 2024
1 parent ac1bb1d commit e7aae57
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
17 changes: 2 additions & 15 deletions components/Marquee.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { cn } from "../lib/utils";
interface MarqueeProps {
className?: string;
reverse?: boolean;
Expand All @@ -21,26 +20,14 @@ export function Marquee({
return (
<div
{...props}
className={cn(
"group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",
{
"flex-row": !vertical,
"flex-col": vertical,
},
className,
)}
className={`group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)] ${vertical ? 'flex-col' : 'flex-row'} ${className}`}
>
{Array(repeat)
.fill(0)
.map((_, i) => (
<div
key={i}
className={cn("flex shrink-0 justify-around [gap:var(--gap)]", {
"animate-marquee flex-row": !vertical,
"animate-marquee-vertical flex-col": vertical,
"group-hover:[animation-play-state:paused]": pauseOnHover,
"[animation-direction:reverse]": reverse,
})}
className={`flex shrink-0 justify-around [gap:var(--gap)] ${vertical ? 'animate-marquee-vertical flex-col' : 'animate-marquee flex-row'} ${pauseOnHover ? 'group-hover:[animation-play-state:paused]' : ''} ${reverse ? '[animation-direction:reverse]' : ''}`}
>
{children}
</div>
Expand Down
5 changes: 0 additions & 5 deletions lib/utils.ts

This file was deleted.

10 changes: 0 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@uiw/codemirror-theme-dracula": "^4.23.5",
"@uiw/react-codemirror": "^4.23.5",
"classnames": "^2.3.1",
"clsx": "^2.1.1",
"codemirror": "^6.0.1",
"date-fns": "^2.28.0",
"framer-motion": "^11.0.20",
Expand Down

0 comments on commit e7aae57

Please sign in to comment.