This commit is contained in:
ditiqi 2025-02-24 09:33:11 +08:00
parent f8f508676a
commit a4d56179ca
1 changed files with 5 additions and 5 deletions

View File

@ -16,11 +16,11 @@ interface SectionItemProps {
export const SectionItem = React.forwardRef<HTMLDivElement, SectionItemProps>( export const SectionItem = React.forwardRef<HTMLDivElement, SectionItemProps>(
({ section, index, isExpanded, onToggle, onLectureClick }, ref) => ( ({ section, index, isExpanded, onToggle, onLectureClick }, ref) => (
<motion.div <div
ref={ref} ref={ref}
initial={{ opacity: 0, y: 20 }} // initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }} // animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.3 }} // transition={{ duration: 0.3 }}
className="border rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow"> className="border rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow">
<button <button
className="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition-colors" className="w-full flex items-center justify-between p-4 hover:bg-gray-50 transition-colors"
@ -64,6 +64,6 @@ export const SectionItem = React.forwardRef<HTMLDivElement, SectionItemProps>(
</motion.div> </motion.div>
)} )}
</AnimatePresence> </AnimatePresence>
</motion.div> </div>
) )
); );