feat: add warning metadata to tables and metrics (#13606)

This commit is contained in:
Erik Ritter
2021-03-17 21:27:34 -07:00
committed by GitHub
parent db57f90a34
commit 64785c20bd
13 changed files with 529 additions and 415 deletions

View File

@@ -30,6 +30,7 @@ import FormLabel from 'src/components/FormLabel';
import DatabaseSelector from 'src/components/DatabaseSelector';
import RefreshLabel from 'src/components/RefreshLabel';
import CertifiedIconWithTooltip from 'src/components/CertifiedIconWithTooltip';
import WarningIconWithTooltip from 'src/components/WarningIconWithTooltip';
const FieldTitle = styled.p`
color: ${({ theme }) => theme.colors.secondary.light2};
@@ -266,6 +267,12 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
size={20}
/>
)}
{option.extra?.warning_markdown && (
<WarningIconWithTooltip
warningMarkdown={option.extra.warning_markdown}
size={20}
/>
)}
{option.label}
</TableLabel>
);