warningsList.tsx 494 B

1234567891011121314151617181920212223242526
  1. import styled from '@emotion/styled';
  2. import {space} from 'sentry/styles/space';
  3. interface WarningsListProps {
  4. warnings: string[];
  5. }
  6. export function WarningsList({warnings}: WarningsListProps) {
  7. return (
  8. <UnstyledList>
  9. {warnings.map((warning, i) => (
  10. <li key={i}>{warning}</li>
  11. ))}
  12. </UnstyledList>
  13. );
  14. }
  15. const UnstyledList = styled('ul')`
  16. display: flex;
  17. flex-direction: column;
  18. gap: ${space(1)};
  19. list-style-type: none;
  20. padding: 0;
  21. margin: 0;
  22. `;