[fix] remove inappropiate animation
This commit is contained in:
@@ -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: "" })}>
|
||||||
|
|||||||
@@ -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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user