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' overflowX: 'hidden'
}} }}
autoHideScrollbar> autoHideScrollbar>
{(session, index) => ( {(session) => (
<motion.div <motion.div
key={session.id} key={session.id}
initial={{ opacity: 0, x: 20 }} initial={{ opacity: 0, x: 20 }}
animate={{ opacity: 1, x: 0 }} animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.3, delay: index * 0.05 }}> transition={{ duration: 0.3 }}>
<SessionItem <SessionItem
session={session} session={session}
agentId={agentId} agentId={agentId}