Update components/MaintenanceAlert.tsx
Co-authored-by: Bennet Gallein <me@bennetgallein.de>pull/142/head
parent
6d300a25ef
commit
aa68ce01e9
|
|
@ -58,25 +58,13 @@ export default function MaintenanceAlert({
|
|||
minWidth: 120,
|
||||
}}
|
||||
>
|
||||
{upcoming ? (
|
||||
<>
|
||||
<b>Scheduled for:</b> {new Date(maintenance.start).toLocaleString()}
|
||||
|
||||
<b>{upcoming ? 'Scheduled for' : 'From'}:</b> {new Date(maintenance.start).toLocaleString()}
|
||||
<br />
|
||||
<b>Expected end:</b>{' '}
|
||||
<b>{upcoming ? 'Expected end' : 'To'}:</b>{' '}
|
||||
{maintenance.end
|
||||
? new Date(maintenance.end).toLocaleString()
|
||||
: 'Until further notice'}
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<b>From:</b> {new Date(maintenance.start).toLocaleString()}
|
||||
<br />
|
||||
<b>To:</b>{' '}
|
||||
{maintenance.end
|
||||
? new Date(maintenance.end).toLocaleString()
|
||||
: 'Until further notice'}
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
</Group>
|
||||
</Alert>
|
||||
|
|
|
|||
Loading…
Reference in New Issue