fix format

This commit is contained in:
abhi1992002
2026-01-22 17:11:23 +05:30
parent 9b097b0ede
commit 9c2cd28843
5 changed files with 33 additions and 15 deletions

View File

@@ -76,7 +76,9 @@ export const AgentsSection = ({
avatarSrc={agent.creator_avatar}
creatorName={agent.creator}
hideAvatar={hideAvatars}
onClick={() => handleCardClick(agent.creator, agent.slug)}
onClick={() =>
handleCardClick(agent.creator, agent.slug)
}
/>
</CarouselItem>
))}

View File

@@ -118,11 +118,7 @@ export const SingleSelect: Story = {
};
function DismissibleDemo() {
const [filters, setFilters] = useState([
"Marketing",
"Sales",
"Development",
]);
const [filters, setFilters] = useState(["Marketing", "Sales", "Development"]);
function handleDismiss(filter: string) {
setFilters((prev) => prev.filter((f) => f !== filter));

View File

@@ -92,7 +92,9 @@ export function FadeIn({
},
};
const MotionComponent = motion[as as keyof typeof motion] as typeof motion.div;
const MotionComponent = motion[
as as keyof typeof motion
] as typeof motion.div;
return (
<MotionComponent

View File

@@ -36,7 +36,9 @@ export const Default: Story = {
args: {
direction: "up",
className: "space-y-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};
@@ -44,7 +46,9 @@ export const FadeDown: Story = {
args: {
direction: "down",
className: "space-y-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};
@@ -52,7 +56,9 @@ export const FadeLeft: Story = {
args: {
direction: "left",
className: "flex gap-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};
@@ -60,7 +66,9 @@ export const FadeRight: Story = {
args: {
direction: "right",
className: "flex gap-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};
@@ -69,7 +77,9 @@ export const FastStagger: Story = {
direction: "up",
staggerDelay: 0.05,
className: "space-y-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};
@@ -78,7 +88,9 @@ export const SlowStagger: Story = {
direction: "up",
staggerDelay: 0.3,
className: "space-y-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};
@@ -87,7 +99,9 @@ export const WithInitialDelay: Story = {
direction: "up",
initialDelay: 0.5,
className: "space-y-4",
children: items.map((item, i) => <DemoCard key={i} title={item} index={i} />),
children: items.map((item, i) => (
<DemoCard key={i} title={item} index={i} />
)),
},
};

View File

@@ -121,7 +121,11 @@ export function StaggeredList({
variants={containerVariants}
>
{children.map((child, index) => (
<motion.div key={index} className={itemClassName} variants={itemVariants}>
<motion.div
key={index}
className={itemClassName}
variants={itemVariants}
>
{child}
</motion.div>
))}