[fix] remove inappropiate animation
This commit is contained in:
@@ -22,7 +22,7 @@ const LaunchOption = () => {
|
||||
<CardTool>
|
||||
{tool.state.launchOptions.map((option, index) => (
|
||||
<ToolButton key={index} onClick={() => tool.setLaunchIndex(index)}>
|
||||
{index + 1}
|
||||
{option.name || index + 1}
|
||||
</ToolButton>
|
||||
))}
|
||||
<ToolButton onClick={() => tool.addLaunchOption({ option: "", name: "" })}>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { cn } from "@heroui/react"
|
||||
import { motion } from "framer-motion"
|
||||
import type { ReactNode } from "react"
|
||||
|
||||
interface CardProps {
|
||||
@@ -11,11 +10,7 @@ interface CardProps {
|
||||
|
||||
const Card = ({ children, className, ...props }: CardProps) => {
|
||||
return (
|
||||
<motion.div
|
||||
initial={{ opacity: 0 }}
|
||||
animate={{ opacity: 1 }}
|
||||
exit={{ opacity: 0 }}
|
||||
transition={{ duration: 0.3}}
|
||||
<div
|
||||
className={cn(
|
||||
"dark:bg-white/[3%] dark:border-white/[6%] px-3 py-3 flex flex-col gap-2.5 border w-full rounded-lg bg-white/40 border-black/[6%]"
|
||||
, className)}
|
||||
@@ -23,7 +18,7 @@ const Card = ({ children, className, ...props }: CardProps) => {
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</motion.div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user