mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 12:29:44 +08:00
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:
parent
adf10f6ea1
commit
ccc5e830d7
@ -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}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user