-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(boards): add columns exlanation (#1562)
* feat(boards): add modal explaining board columns * chore(boards): change column modal text * chore(boards):refactor * chore(columns):change text in columnModal
- Loading branch information
Showing
3 changed files
with
96 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
next-tavla/app/(admin)/organizations/components/DefaultColumns/ColumnModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Modal } from '@entur/modal' | ||
import { Heading4, SubParagraph } from '@entur/typography' | ||
|
||
function ColumnModal({ | ||
isOpen, | ||
setIsOpen, | ||
}: { | ||
isOpen: boolean | ||
setIsOpen: (arg0: boolean) => void | ||
}) { | ||
return ( | ||
<Modal | ||
open={isOpen} | ||
onDismiss={() => setIsOpen(false)} | ||
title="Dette betyr kolonnene" | ||
size="medium" | ||
> | ||
<Heading4>Planlagt </Heading4> | ||
<SubParagraph> | ||
Rutetid for avgangen til transportmiddelet. Påvirkes ikke av | ||
sanntid. | ||
</SubParagraph> | ||
<Heading4>Ankomst </Heading4> | ||
<SubParagraph> | ||
Når transportmiddelet ankommer stoppestedet. Viser sanntid, hvis | ||
det finnes. Hvis ikke vises rutetid. | ||
</SubParagraph> | ||
<Heading4>Forventet </Heading4> | ||
<SubParagraph> | ||
Forventet avgangstid for kjøretøyet. Viser sanntid, hvis det | ||
finnes. Hvis ikke vises rutetid (det samme tidspunktet som vises | ||
under “Planlagt”). | ||
</SubParagraph> | ||
<Heading4>Sanntidsikon </Heading4> | ||
<SubParagraph> | ||
Legger til et sanntidsikon i tavlen som pulserer. Sanntidsikonet | ||
er grønt eller rødt, avhengig av om kjøretøyet er i rute eller | ||
forsinket.Indikerer om tidspunktet er oppdatert med | ||
sanntidsinformasjon. | ||
</SubParagraph> | ||
</Modal> | ||
) | ||
} | ||
|
||
export { ColumnModal } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters