Skip to content

Commit

Permalink
pretiter
Browse files Browse the repository at this point in the history
  • Loading branch information
sinejespersen committed Dec 18, 2024
1 parent ca69adb commit 12b0de3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 7 additions & 5 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function App() {
lat,
long,
}),
[lat, long]
[lat, long],
);

function handlePermissionInfoBanner() {
Expand All @@ -45,8 +45,10 @@ function App() {
<span>
Du har ikke accepteret, at vi må få adgang til din lokation. For at denne applikation skal fungere, skal den
bruge din lokation. Hvis du vil vide mere om hvordan du giver denne angang, kan du besøge{" "}
<Link className="underline" to="/navigation-help">Hjælp til navigation</Link>
</span>
<Link className="underline" to="/navigation-help">
Hjælp til navigation
</Link>
</span>,
);
}
});
Expand Down Expand Up @@ -97,7 +99,7 @@ function App() {
listOfUnlocked,
setListOfUnlocked,
}),
[selectedRoute, nextUnlockablePointId, listOfUnlocked]
[selectedRoute, nextUnlockablePointId, listOfUnlocked],
)}
>
<SkipLinks />
Expand All @@ -118,7 +120,7 @@ function App() {
infoText,
setInfoText,
}),
[error, errorText, info, infoText]
[error, errorText, info, infoText],
)}
>
<Switch>
Expand Down
10 changes: 8 additions & 2 deletions src/components/MessageComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ function MessageComponent() {
return (
<>
{error && (
<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">
<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"
>
<CloseButton
closeOverlay={() => resetError()}
label="Luk denne fejlbesked"
Expand All @@ -27,7 +30,10 @@ function MessageComponent() {
</div>
)}
{info && (
<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">
<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"
>
<CloseButton
closeOverlay={() => resetInfo()}
label="Luk denne infomation"
Expand Down

0 comments on commit 12b0de3

Please sign in to comment.