Merge pull request #9003 from scratchfoundation/fix/swapped-links

fix: [UEPR-88] fix swapped links
This commit is contained in:
Miroslav Dionisiev 2024-12-06 17:42:54 +02:00 committed by GitHub
commit e8f744c1a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,11 +51,11 @@ const GUIDES_SECTIONS = [
hrefId: 'guides.ScratchLearningResource_MyBlocksLink'
},
{
cardId: 'ideas.modalCardNameFaceSensing',
cardId: 'ideas.modalCardNameComputationalConcepts',
hrefId: 'cards.paperplanes-turtlegraphics-cardsLink'
},
{
cardId: 'ideas.modalCardNameComputationalConcepts',
cardId: 'ideas.modalCardNameFaceSensing',
hrefId: 'cards.facesensing-cardsLink'
}
]
@ -69,12 +69,12 @@ export const CardsModal = ({isOpen, onClose = () => {}}) => {
if (currentPage < GUIDES_SECTIONS.length - 1) {
setCurrentPage(currentPage + 1);
}
}, [currentPage]);
}, [currentPage, setCurrentPage]);
const onBackPage = useCallback(() => {
if (currentPage > 0) {
setCurrentPage(currentPage - 1);
}
}, [currentPage]);
}, [currentPage, setCurrentPage]);
if (!isOpen) return null;
return (