From 431778fec3040c62250a9ae033d45360a6a516c6 Mon Sep 17 00:00:00 2001 From: Katherina Marcenko <45818654+KatvonRivia@users.noreply.github.com> Date: Thu, 26 Mar 2020 09:48:45 +0100 Subject: [PATCH] feat(showcase-title): add title slide in showcase mode (#314) * feat(showcase-title): add title slide in showcase mode * feat(showcase-title): add exact to presenter route --- src/scripts/components/app/app.tsx | 26 +++++++++++------- .../showcase-selector/showcase-selector.tsx | 2 +- .../components/story-title/story-title.styl | 21 +++++++++++++++ .../components/story-title/story-title.tsx | 27 +++++++++++++++++++ src/scripts/hooks/use-story-navigation.ts | 5 ++-- 5 files changed, 68 insertions(+), 13 deletions(-) create mode 100644 src/scripts/components/story-title/story-title.styl create mode 100644 src/scripts/components/story-title/story-title.tsx diff --git a/src/scripts/components/app/app.tsx b/src/scripts/components/app/app.tsx index 37b85f926..ab86d76a4 100644 --- a/src/scripts/components/app/app.tsx +++ b/src/scripts/components/app/app.tsx @@ -20,6 +20,7 @@ import StoriesSelector from '../stories-selector/stories-selector'; import PresentationSelector from '../presentation-selector/presentation-selector'; import ShowcaseSelector from '../showcase-selector/showcase-selector'; import Globes from '../globes/globes'; +import StoryTitle from '../story-title/story-title'; import translations from '../../i18n'; @@ -40,14 +41,19 @@ const TranslatedApp: FunctionComponent = () => { return ( - - - + + + + + + + + }> @@ -66,10 +72,10 @@ const TranslatedApp: FunctionComponent = () => { - + - + diff --git a/src/scripts/components/showcase-selector/showcase-selector.tsx b/src/scripts/components/showcase-selector/showcase-selector.tsx index 43d79ccfc..174f449c8 100644 --- a/src/scripts/components/showcase-selector/showcase-selector.tsx +++ b/src/scripts/components/showcase-selector/showcase-selector.tsx @@ -40,7 +40,7 @@ const ShowcaseSelector: FunctionComponent = () => {