/
githubmirror
/
traefik
Обзор
Документация
Войти
/
githubmirror
/
traefik
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
webui/src/components/resources/ResourceErrors.tsx
31 строка
919 B
Murat Aslan
Display server weight in service detail view
30 мар 2026, 17:58
Не верифицирован
30 мар 2026, 17:58
9a8ff96
Код
Авторство
О чём код?
import { Card, Flex, Skeleton } from '@traefik-labs/faency' import { FiAlertTriangle } from 'react-icons/fi' import { SectionTitle } from './DetailsCard' import GenericTable from './GenericTable' const ResourceErrors = ({ errors }: { errors: string[] }) => { return ( <Flex direction="column" gap={2}> <SectionTitle title="Errors" icon={<FiAlertTriangle color="hsl(347, 100%, 60.0%)" size={20} />} /> <Card> <GenericTable items={errors} status="error" copyable /> </Card> </Flex> ) } export const ResourceErrorsSkeleton = () => { return ( <Flex direction="column" gap={2}> <Skeleton css={{ width: 200 }} /> <Card css={{ width: '100%', height: 150, gap: '$3', display: 'flex', flexDirection: 'column' }}> {[...Array(4)].map((_, idx) => ( <Skeleton key={`1-${idx}`} /> ))} </Card> </Flex> ) } export default ResourceErrors