[fix] remove inappropiate animation

This commit is contained in:
Purp1e
2025-03-23 16:59:02 +08:00
parent 2860408ec0
commit 03e5704a6e
2 changed files with 3 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ const LaunchOption = () => {
<CardTool> <CardTool>
{tool.state.launchOptions.map((option, index) => ( {tool.state.launchOptions.map((option, index) => (
<ToolButton key={index} onClick={() => tool.setLaunchIndex(index)}> <ToolButton key={index} onClick={() => tool.setLaunchIndex(index)}>
{index + 1} {option.name || index + 1}
</ToolButton> </ToolButton>
))} ))}
<ToolButton onClick={() => tool.addLaunchOption({ option: "", name: "" })}> <ToolButton onClick={() => tool.addLaunchOption({ option: "", name: "" })}>

View File

@@ -1,5 +1,4 @@
import { cn } from "@heroui/react" import { cn } from "@heroui/react"
import { motion } from "framer-motion"
import type { ReactNode } from "react" import type { ReactNode } from "react"
interface CardProps { interface CardProps {
@@ -11,11 +10,7 @@ interface CardProps {
const Card = ({ children, className, ...props }: CardProps) => { const Card = ({ children, className, ...props }: CardProps) => {
return ( return (
<motion.div <div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.3}}
className={cn( 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%]" "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)} , className)}
@@ -23,7 +18,7 @@ const Card = ({ children, className, ...props }: CardProps) => {
{...props} {...props}
> >
{children} {children}
</motion.div> </div>
) )
} }