mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-12-19 12:02:28 -05:00
Merge pull request #9003 from scratchfoundation/fix/swapped-links
fix: [UEPR-88] fix swapped links
This commit is contained in:
commit
e8f744c1a6
1 changed files with 4 additions and 4 deletions
|
@ -51,11 +51,11 @@ const GUIDES_SECTIONS = [
|
||||||
hrefId: 'guides.ScratchLearningResource_MyBlocksLink'
|
hrefId: 'guides.ScratchLearningResource_MyBlocksLink'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
cardId: 'ideas.modalCardNameFaceSensing',
|
cardId: 'ideas.modalCardNameComputationalConcepts',
|
||||||
hrefId: 'cards.paperplanes-turtlegraphics-cardsLink'
|
hrefId: 'cards.paperplanes-turtlegraphics-cardsLink'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
cardId: 'ideas.modalCardNameComputationalConcepts',
|
cardId: 'ideas.modalCardNameFaceSensing',
|
||||||
hrefId: 'cards.facesensing-cardsLink'
|
hrefId: 'cards.facesensing-cardsLink'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -69,12 +69,12 @@ export const CardsModal = ({isOpen, onClose = () => {}}) => {
|
||||||
if (currentPage < GUIDES_SECTIONS.length - 1) {
|
if (currentPage < GUIDES_SECTIONS.length - 1) {
|
||||||
setCurrentPage(currentPage + 1);
|
setCurrentPage(currentPage + 1);
|
||||||
}
|
}
|
||||||
}, [currentPage]);
|
}, [currentPage, setCurrentPage]);
|
||||||
const onBackPage = useCallback(() => {
|
const onBackPage = useCallback(() => {
|
||||||
if (currentPage > 0) {
|
if (currentPage > 0) {
|
||||||
setCurrentPage(currentPage - 1);
|
setCurrentPage(currentPage - 1);
|
||||||
}
|
}
|
||||||
}, [currentPage]);
|
}, [currentPage, setCurrentPage]);
|
||||||
|
|
||||||
if (!isOpen) return null;
|
if (!isOpen) return null;
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue