From d808d726f4bb33dfc2efdd8a4f25ec01868fdc2b Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Sat, 14 May 2022 00:17:20 -0700 Subject: [PATCH] fix: add scrollable anchor to grid project block (#45954) --- .../Introduction/components/block.tsx | 56 ++++++++++--------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/client/src/templates/Introduction/components/block.tsx b/client/src/templates/Introduction/components/block.tsx index 6715ddb0ff4..f6f6397989c 100644 --- a/client/src/templates/Introduction/components/block.tsx +++ b/client/src/templates/Introduction/components/block.tsx @@ -305,32 +305,36 @@ export class Block extends Component { ); const GridProjectBlock = ( -
- { - this.handleBlockClick(); - }} - to={challengesWithCompleted[0].fields.slug} - > -
- {t('misc.certification-project')} - {!isAuditedCert(curriculumLocale, superBlock) && ( - - {t('misc.translation-pending')} - - )} -
-
- {this.renderCheckMark(isBlockCompleted)} -

{blockTitle}

-
- {this.renderBlockIntros(blockIntroArr)} - -
+ +
+ { + this.handleBlockClick(); + }} + to={challengesWithCompleted[0].fields.slug} + > +
+ + {t('misc.certification-project')} + + {!isAuditedCert(curriculumLocale, superBlock) && ( + + {t('misc.translation-pending')} + + )} +
+
+ {this.renderCheckMark(isBlockCompleted)} +

{blockTitle}

+
+ {this.renderBlockIntros(blockIntroArr)} + +
+
); const blockrenderer = () => {