* feat: add incident history link to links in header * fix: lower margin-bottom on header to have not that much wasted space * chore: move footer to own component * feat: add NoIncidents component * feat: add incidents history page * fix: add sorting by date * fix: fix sorting * feat: hash linking to individual incidents * fix: always truthy title * feat: remove hash * feat: some link improvements * feat: improve styles for alert, support mobile devices * fix: remove unused vars, larger margin --------- Co-authored-by: lyc8503 <[email protected]>
30 lines
673 B
TypeScript
30 lines
673 B
TypeScript
import { Alert, Text } from '@mantine/core'
|
|
import { IconInfoCircle } from '@tabler/icons-react'
|
|
|
|
export default function NoIncidentsAlert({ style }: { style?: React.CSSProperties }) {
|
|
return (
|
|
<Alert
|
|
icon={<IconInfoCircle />}
|
|
title={
|
|
<span
|
|
style={{
|
|
fontSize: '1rem',
|
|
fontWeight: 700,
|
|
}}
|
|
>
|
|
{'No incidents in this month'}
|
|
</span>
|
|
}
|
|
color="gray"
|
|
withCloseButton={false}
|
|
style={{
|
|
position: 'relative',
|
|
margin: '16px auto 0 auto',
|
|
...style,
|
|
}}
|
|
>
|
|
<Text>There are no incidents for this month.</Text>
|
|
</Alert>
|
|
)
|
|
}
|