1
0
Fork 0

Fix blocked navigation on Safari

This commit is contained in:
Gina A. 2025-11-12 10:20:16 +01:00 committed by GitHub
parent f45317c9c9
commit 77b1282570
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 29 additions and 34 deletions

View file

@ -1,9 +1,20 @@
import { Flex, Text } from '@traefiklabs/faency'
import { AriaTd, Flex, Text } from '@traefiklabs/faency'
import { FiAlertTriangle } from 'react-icons/fi'
export const EmptyPlaceholder = ({ message = 'No data available' }: { message?: string }) => (
type EmptyPlaceholderProps = {
message?: string
}
export const EmptyPlaceholder = ({ message = 'No data available' }: EmptyPlaceholderProps) => (
<Flex align="center" justify="center" css={{ py: '$5', color: '$primary' }}>
<FiAlertTriangle size={16} />
<Text css={{ pl: '$2' }}>{message}</Text>
</Flex>
)
export const EmptyPlaceholderTd = (props: EmptyPlaceholderProps) => {
return (
<AriaTd css={{ pointerEvents: 'none' }} fullColSpan>
<EmptyPlaceholder {...props} />
</AriaTd>
)
}