1
0
Fork 0

Migrate Traefik Proxy dashboard UI to React

This commit is contained in:
Gina A. 2025-05-28 11:26:04 +02:00 committed by GitHub
parent 4790e4910f
commit f16fff577a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
324 changed files with 28303 additions and 19567 deletions

View file

@ -0,0 +1,20 @@
import { Box, Button, Text } from '@traefiklabs/faency'
import { FallbackProps } from 'react-error-boundary'
const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => {
return (
<Box role="alert">
<Box css={{ mb: '$2' }}>
<Text as="p">Something went wrong:</Text>
</Box>
<Box css={{ mb: '$2' }}>
<Text variant="red">{error.message}</Text>
</Box>
<Button type="button" onClick={resetErrorBoundary}>
Try again
</Button>
</Box>
)
}
export default ErrorFallback