Skip to content

Commit 6888434

Browse files
committed
fix: biome formatting in InteractiveShowcase
1 parent f96e907 commit 6888434

1 file changed

Lines changed: 20 additions & 27 deletions

File tree

src/components/InteractiveShowcase.tsx

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,43 @@
1-
import { ChevronLeft, ChevronRight } from "lucide-react";
2-
import { AnimatePresence, motion } from "motion/react";
3-
import React, { useState } from "react";
1+
import { ChevronLeft, ChevronRight } from 'lucide-react';
2+
import { AnimatePresence, motion } from 'motion/react';
3+
import React, { useState } from 'react';
44

55
const SHOWCASE_TABS = [
66
{
7-
id: "files" as const,
8-
label: "Files & Assets",
7+
id: 'files' as const,
8+
label: 'Files & Assets',
99
description:
10-
"Centralized asset management for organizing high-fidelity media, brand guidelines, and storyboards.",
11-
image: "/list-example.webp",
10+
'Centralized asset management for organizing high-fidelity media, brand guidelines, and storyboards.',
11+
image: '/list-example.webp',
1212
},
1313
{
14-
id: "review" as const,
15-
label: "Precise feedback",
14+
id: 'review' as const,
15+
label: 'Precise feedback',
1616
description:
17-
"Frame-accurate visual review canvas with coordinate-based annotations for clear creative direction.",
18-
image: "/comment-example.webp",
17+
'Frame-accurate visual review canvas with coordinate-based annotations for clear creative direction.',
18+
image: '/comment-example.webp',
1919
},
2020
{
21-
id: "agent" as const,
22-
label: "Shumai Agent",
21+
id: 'agent' as const,
22+
label: 'Shumai Agent',
2323
description:
24-
"AI-powered co-production assistant for automated tasks and creative recommendations.",
25-
image: "/agent-example.webp",
24+
'AI-powered co-production assistant for automated tasks and creative recommendations.',
25+
image: '/agent-example.webp',
2626
},
2727
];
2828

2929
export default function InteractiveShowcase() {
30-
const [activeTab, setActiveTab] = useState<"files" | "review" | "agent">(
31-
"files",
32-
);
30+
const [activeTab, setActiveTab] = useState<'files' | 'review' | 'agent'>('files');
3331

3432
const currentIndex = SHOWCASE_TABS.findIndex((t) => t.id === activeTab);
3533
const currentTabData = SHOWCASE_TABS[currentIndex];
3634

37-
const handleTabChange = (tabId: "files" | "review" | "agent") => {
35+
const handleTabChange = (tabId: 'files' | 'review' | 'agent') => {
3836
setActiveTab(tabId);
3937
};
4038

4139
const handlePrev = () => {
42-
const nextIndex =
43-
(currentIndex - 1 + SHOWCASE_TABS.length) % SHOWCASE_TABS.length;
40+
const nextIndex = (currentIndex - 1 + SHOWCASE_TABS.length) % SHOWCASE_TABS.length;
4441
setActiveTab(SHOWCASE_TABS[nextIndex].id);
4542
};
4643

@@ -101,18 +98,14 @@ export default function InteractiveShowcase() {
10198
>
10299
<h3
103100
className={`text-base md:text-lg font-serif font-bold mb-2 transition-colors duration-300 ${
104-
isActive
105-
? "text-white"
106-
: "text-white/30 group-hover:text-white/60"
101+
isActive ? 'text-white' : 'text-white/30 group-hover:text-white/60'
107102
}`}
108103
>
109104
{tab.label}
110105
</h3>
111106
<p
112107
className={`text-xs md:text-sm leading-relaxed transition-colors duration-300 ${
113-
isActive
114-
? "text-gray-300"
115-
: "text-gray-300/20 group-hover:text-gray-300/50"
108+
isActive ? 'text-gray-300' : 'text-gray-300/20 group-hover:text-gray-300/50'
116109
}`}
117110
>
118111
{tab.description}

0 commit comments

Comments
 (0)