From 6e96f2a5f813a8f75c8f0d926c1b721197307a3d Mon Sep 17 00:00:00 2001 From: shmck Date: Tue, 21 Jul 2020 20:58:33 -0700 Subject: [PATCH] level complete message Signed-off-by: shmck --- .../Tutorial/components/Continue.tsx | 7 +++-- web-app/stories/Tutorial.stories.tsx | 29 ++++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/web-app/src/containers/Tutorial/components/Continue.tsx b/web-app/src/containers/Tutorial/components/Continue.tsx index 19451990..5a974a4f 100644 --- a/web-app/src/containers/Tutorial/components/Continue.tsx +++ b/web-app/src/containers/Tutorial/components/Continue.tsx @@ -43,13 +43,15 @@ const Continue = (props: Props) => { onClose() } + const isComplete = props.current === props.max + return ( <> { >
+
-

{props.title}

+

{isComplete ? 'Congratulations!' : props.title}