mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
fix format
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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} />
|
||||
)),
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -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>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user