test: Adds tests and storybook to PopoverSection component (#13438)

* test: Adds storybook to PopoverSection component

* test: Adds tests and storybook to PopoverSection component
This commit is contained in:
Michael S. Molina
2021-03-09 17:08:10 -03:00
committed by GitHub
parent f0a9dccc70
commit fc36de2d1f
7 changed files with 207 additions and 118 deletions

View File

@@ -455,10 +455,9 @@ export default class AnnotationLayer extends React.PureComponent {
<div style={{ marginRight: '2rem' }}>
<PopoverSection
isSelected
onSelect={() => {}}
title="Annotation Slice Configuration"
info={`This section allows you to configure how to use the slice
to generate annotations.`}
title={t('Annotation Slice Configuration')}
info={t(`This section allows you to configure how to use the slice
to generate annotations.`)}
>
{(annotationType === ANNOTATION_TYPES.EVENT ||
annotationType === ANNOTATION_TYPES.INTERVAL) && (
@@ -597,7 +596,6 @@ export default class AnnotationLayer extends React.PureComponent {
return (
<PopoverSection
isSelected
onSelect={() => {}}
title={t('Display configuration')}
info={t('Configure your how you overlay is displayed here.')}
>
@@ -697,7 +695,6 @@ export default class AnnotationLayer extends React.PureComponent {
<div style={{ marginRight: '2rem' }}>
<PopoverSection
isSelected
onSelect={() => {}}
title={t('Layer configuration')}
info={t('Configure the basics of your Annotation Layer.')}
>