Skip to content

Commit 7a7de25

Browse files
acn-sbuadStephanie Buadu
and
Stephanie Buadu
authored
Bug/4577 styling issues (#4578)
* line break * skift aktør small * es lint issues * bumped version Co-authored-by: Stephanie Buadu <[email protected]>
1 parent 9db67f9 commit 7a7de25

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

src/Altinn.Apps/AppFrontend/react/altinn-app-frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "altinn-app-frontend",
3-
"version": "2.1.5",
3+
"version": "2.1.6",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/Altinn.Apps/AppFrontend/react/altinn-app-frontend/src/features/instantiate/containers/MissingRolesError.tsx

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import { useSelector } from 'react-redux';
33
import { Link } from 'react-router-dom';
4-
import { getParsedLanguageFromKey } from 'altinn-shared/utils';
4+
import { getParsedLanguageFromKey, getParsedLanguageFromText } from 'altinn-shared/utils';
55
import { IRuntimeState } from '../../../types';
66
import { getHostname } from '../../../utils/urlHelper';
77
import InstantiationErrorPage from './InstantiationErrorPage';
@@ -18,44 +18,51 @@ function MissingRolesError() {
1818
return getParsedLanguageFromKey(
1919
'instantiate.authorization_error_rights',
2020
language,
21-
[selectedParty.name]);
21+
[selectedParty.name],
22+
);
2223
}
2324

2425
function getCustomerService() {
2526
return getParsedLanguageFromKey(
2627
'instantiate.authorization_error_info_customer_service',
2728
language,
28-
[language.general.customer_service_phone_number]);
29+
[language.general.customer_service_phone_number],
30+
);
2931
}
3032

3133
function getCheckRights(hostName: string) {
3234
return getParsedLanguageFromKey(
3335
'instantiate.authorization_error_check_rights',
3436
language,
35-
[hostName]);
37+
[hostName],
38+
);
3639
}
3740

3841
function getErrorInfoRights(hostName: string) {
3942
return getParsedLanguageFromKey(
4043
'instantiate.authorization_error_info_rights',
4144
language,
42-
[hostName]);
45+
[hostName],
46+
);
4347
}
4448

4549
function createErrorContent() {
4650
const hostName = getHostname();
4751

4852
const errorRights = getErrorRights();
49-
const errorChangeParty = <Link to='/partyselection'>{language.party_selection.change_party}</Link>;
50-
const errorAsk = language.instantiate.authorization_error_ask;
53+
const errorChangeParty = <Link to='/partyselection'>{getParsedLanguageFromText(language.party_selection.change_party)}</Link>;
54+
const errorAsk = getParsedLanguageFromText(language.instantiate.authorization_error_ask);
5155
const errorCheckRights = getCheckRights(hostName);
5256
const errorMoreInfo = getErrorInfoRights(hostName);
5357
const errorCustomerService = getCustomerService();
5458

5559
return (
5660
<>
57-
<span>{errorRights}({errorChangeParty}). </span>
61+
<span>{errorRights} ({errorChangeParty}). </span>
62+
<br />
63+
<br />
5864
<span>{errorAsk} </span>
65+
<br />
5966
<span>{errorCheckRights}</span>
6067
<br />
6168
<br />

0 commit comments

Comments
 (0)