Skip to content

Commit 12b0de3

Browse files
author
Sine Jespersen
committed
pretiter
1 parent ca69adb commit 12b0de3

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

src/App.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function App() {
3434
lat,
3535
long,
3636
}),
37-
[lat, long]
37+
[lat, long],
3838
);
3939

4040
function handlePermissionInfoBanner() {
@@ -45,8 +45,10 @@ function App() {
4545
<span>
4646
Du har ikke accepteret, at vi må få adgang til din lokation. For at denne applikation skal fungere, skal den
4747
bruge din lokation. Hvis du vil vide mere om hvordan du giver denne angang, kan du besøge{" "}
48-
<Link className="underline" to="/navigation-help">Hjælp til navigation</Link>
49-
</span>
48+
<Link className="underline" to="/navigation-help">
49+
Hjælp til navigation
50+
</Link>
51+
</span>,
5052
);
5153
}
5254
});
@@ -97,7 +99,7 @@ function App() {
9799
listOfUnlocked,
98100
setListOfUnlocked,
99101
}),
100-
[selectedRoute, nextUnlockablePointId, listOfUnlocked]
102+
[selectedRoute, nextUnlockablePointId, listOfUnlocked],
101103
)}
102104
>
103105
<SkipLinks />
@@ -118,7 +120,7 @@ function App() {
118120
infoText,
119121
setInfoText,
120122
}),
121-
[error, errorText, info, infoText]
123+
[error, errorText, info, infoText],
122124
)}
123125
>
124126
<Switch>

src/components/MessageComponent.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ function MessageComponent() {
1717
return (
1818
<>
1919
{error && (
20-
<div role="banner" className="relative dark:bg-red-50 bg-red-50 text-black border-l-4 border-solid border-red-400 pl-5 pr-10 py-10 mb-2">
20+
<div
21+
role="banner"
22+
className="relative dark:bg-red-50 bg-red-50 text-black border-l-4 border-solid border-red-400 pl-5 pr-10 py-10 mb-2"
23+
>
2124
<CloseButton
2225
closeOverlay={() => resetError()}
2326
label="Luk denne fejlbesked"
@@ -27,7 +30,10 @@ function MessageComponent() {
2730
</div>
2831
)}
2932
{info && (
30-
<div role="banner" className="relative dark:bg-red-50 bg-yellow-50 text-black border-l-4 border-solid border-yellow-400 pl-5 pr-10 py-10 mb-2">
33+
<div
34+
role="banner"
35+
className="relative dark:bg-red-50 bg-yellow-50 text-black border-l-4 border-solid border-yellow-400 pl-5 pr-10 py-10 mb-2"
36+
>
3137
<CloseButton
3238
closeOverlay={() => resetInfo()}
3339
label="Luk denne infomation"

0 commit comments

Comments
 (0)