From cfa0810d8bbcd20c8e9d0011f0edaf0c8c1652f8 Mon Sep 17 00:00:00 2001 From: Torgeir Holen <94476391+Torgeir333@users.noreply.github.com> Date: Wed, 6 Dec 2023 09:00:31 +0100 Subject: [PATCH] Update CreationPage with new Design of 24.11.23 (#130) * update OverviewPage with new Design of 24.11.23 * update CreationPage with new Design of 24.11.23 * resolve merge conflict * update superficial features and add language support for nynorsk and bokmaal * fix curly bracket * switch nynorsk and bokmaal language support for testing purposes * fix lack of nynorsk support in direct consent page --- .../features/creationpage/CreationPage.tsx | 6 +- .../creationpage/CreationPageContent.tsx | 42 ++-- frontend/src/localizations/no_nb.json | 191 +++++++++--------- frontend/src/localizations/no_nn.json | 189 +++++++++-------- 4 files changed, 219 insertions(+), 209 deletions(-) diff --git a/frontend/src/features/creationpage/CreationPage.tsx b/frontend/src/features/creationpage/CreationPage.tsx index 85c6ac85..3633c4e5 100644 --- a/frontend/src/features/creationpage/CreationPage.tsx +++ b/frontend/src/features/creationpage/CreationPage.tsx @@ -9,16 +9,14 @@ import { CreationPageContent } from './CreationPageContent'; export const CreationPage = () => { const { t } = useTranslation('common'); const isSm = useMediaQuery('(max-width: 768px)'); - - // fix-me: set language key in - + return ( - }>{'Opprett ny systembruker'} + }>{t('authent_creationpage.banner_title')} diff --git a/frontend/src/features/creationpage/CreationPageContent.tsx b/frontend/src/features/creationpage/CreationPageContent.tsx index 5e31bc9e..e02965d1 100644 --- a/frontend/src/features/creationpage/CreationPageContent.tsx +++ b/frontend/src/features/creationpage/CreationPageContent.tsx @@ -28,7 +28,8 @@ export const CreationPageContent = () => { // const [vendorsArrayPopulated, setVendorsArrayPopulated] = useState(false); // not used yet - const { t } = useTranslation('common'); // ikke i bruk ennå + const { t } = useTranslation('common'); + const navigate = useNavigate(); const dispatch = useAppDispatch(); @@ -83,37 +84,28 @@ export const CreationPageContent = () => {
setIntegrationName(e.target.value)} />
-
- setDescriptionEntered(e.target.value)} - /> -
-

{overviewText}

+

{t('authent_creationpage.sub_title')}

- I de fleste tilfeller vil systembrukeren benyttes i sammenheng med - sluttbrukersystemer levert av forskjellige leverandører. Det er en - rekke leverandører og systemer i markedet som tilbyr systemer - for forskjellig bruk. Du må selv gjøre en selvstendig vurdering på valg - av leverandør og system. Nedenfor listes alle leverandører og systemer - som har meldt at de leverer slike tjenester. Altinn har ikke gjort noen - vurdering av disse. + {t('authent_creationpage.content_text1')} +

+ +

+ {t('authent_creationpage.content_text2')}