diff --git a/src/components/contribute/setup/contribute.tsx b/src/components/contribute/setup/contribute.tsx index 31f8d93..bff6ec8 100644 --- a/src/components/contribute/setup/contribute.tsx +++ b/src/components/contribute/setup/contribute.tsx @@ -77,6 +77,7 @@ interface ContributeProps { labels?: string[]; sentencesSource?: string; demo?: boolean; + title?: string; } type Props = ReturnType & @@ -136,7 +137,7 @@ class Contribute extends React.Component { contributeType == ContributeType.REPEAT ) { if (!demographic && goal) { - return t('your-voice'); + return this.props.title ?? t('your-voice'); } return goal ? t('tips') @@ -156,7 +157,7 @@ class Contribute extends React.Component { onDemographicsSubmit = async ( age: Demographic, nativeLanguage: Demographic, - institution?: string, + institution?: string ) => { const { user: { @@ -239,6 +240,7 @@ class Contribute extends React.Component { user: { client }, labels, sentencesSource, + title = this.props.t('your-voice'), } = this.props; return ( diff --git a/src/pages/l2.tsx b/src/pages/l2.tsx index 40c8950..54ee5ba 100644 --- a/src/pages/l2.tsx +++ b/src/pages/l2.tsx @@ -18,17 +18,6 @@ import ContributePage from '../components/contribute/setup/contribute'; import { ContributeType, Goal } from '../types/contribute'; import styled from 'styled-components'; -const L2Header = styled.h1` - display: flex; - align-items: center; - justify-content: center; - position: fixed; - top: 0; - width: 100%; - padding: 1rem; - z-index: 1; -`; - const dispatchProps = { resetContribute, }; @@ -87,8 +76,8 @@ class L2Page extends React.Component { const { t } = this.props; return (
- {t('icelandic-as-a-second-language')} diff --git a/src/pages/parallel.tsx b/src/pages/parallel.tsx index dd141b9..b94ee0c 100644 --- a/src/pages/parallel.tsx +++ b/src/pages/parallel.tsx @@ -18,17 +18,6 @@ import ContributePage from '../components/contribute/setup/contribute'; import { ContributeType, Goal } from '../types/contribute'; import styled from 'styled-components'; -const ParallelHeader = styled.h1` - display: flex; - align-items: center; - justify-content: center; - position: fixed; - top: 0; - width: 100%; - padding: 1rem; - z-index: 1; -`; - const dispatchProps = { resetContribute, }; @@ -87,10 +76,8 @@ class ParallelPage extends React.Component { const { t } = this.props; return (
- - {t('parallel-collection-for-pronunciation-research')} -