refactor(Sessions): remove unused index parameter and delay from animation

Simplify animation by removing unused index parameter and delay calculation
This commit is contained in:
icarus 2025-09-27 13:27:10 +08:00
parent adf10f6ea1
commit ccc5e830d7

View File

@ -118,12 +118,12 @@ const Sessions: React.FC<SessionsProps> = ({ agentId }) => {
overflowX: 'hidden'
}}
autoHideScrollbar>
{(session, index) => (
{(session) => (
<motion.div
key={session.id}
initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.3, delay: index * 0.05 }}>
transition={{ duration: 0.3 }}>
<SessionItem
session={session}
agentId={agentId}