Skip to content

Commit 27361d1

Browse files
author
Sine Jespersen
committed
improve label
1 parent 118ae84 commit 27361d1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/components/points/PointOverlay.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,15 @@ function PointOverlay({ point: { name, subtitles, mediaEmbedCode, id }, toggleAc
5959
closeOverlay={() => close()}
6060
label="luk afspilningen"
6161
/>
62-
<UpDownButton toggleOverlay={() => setFullScreen(!fullScreen)} up={!fullScreen} label="Åben punkt" />
63-
62+
<UpDownButton
63+
toggleOverlay={() => setFullScreen(!fullScreen)}
64+
up={!fullScreen}
65+
label={`${
66+
!fullScreen
67+
? "Åben modal med information om dette punkt på ruten"
68+
: "Luk modal med information om dette punkt på ruten"
69+
}`}
70+
/>
6471
<div className="p-4 flex justify-between">
6572
<div className="flex align-between">
6673
{fullScreen && <OrderComponent order={order} />}

0 commit comments

Comments
 (0)