test: Adds tests and storybook to CertifiedIcon component (#13457)

This commit is contained in:
Michael S. Molina
2021-03-30 18:31:35 -03:00
committed by GitHub
parent 3c4591ef15
commit 9d6832dc27
7 changed files with 107 additions and 11 deletions

View File

@@ -29,7 +29,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 CertifiedIcon from 'src/components/CertifiedIcon';
import WarningIconWithTooltip from 'src/components/WarningIconWithTooltip';
const FieldTitle = styled.p`
@@ -261,7 +261,7 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
<i className={`fa fa-${option.type === 'view' ? 'eye' : 'table'}`} />
</small>
{option.extra?.certification && (
<CertifiedIconWithTooltip
<CertifiedIcon
certifiedBy={option.extra.certification.certified_by}
details={option.extra.certification.details}
size={20}