Update components/MaintenanceAlert.tsx

Co-authored-by: Bennet Gallein <me@bennetgallein.de>
pull/142/head
Mack 2025-09-19 19:11:54 +01:00 committed by GitHub
parent 6d300a25ef
commit aa68ce01e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 15 deletions

View File

@ -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>