diff --git a/src/components/Announcements/AnnouncementsDialogContent.tsx b/src/components/Announcements/AnnouncementsDialogContent.tsx index 00350fccb4..2a8e79f099 100644 --- a/src/components/Announcements/AnnouncementsDialogContent.tsx +++ b/src/components/Announcements/AnnouncementsDialogContent.tsx @@ -1,4 +1,5 @@ import React, { FC } from 'react' +import cx from 'classnames' import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n' import Typography from 'cozy-ui/transpiled/react/Typography' @@ -9,6 +10,9 @@ import useBreakpoints from 'cozy-ui/transpiled/react/providers/Breakpoints' import { Announcement } from './types' import { useAnnouncementsImage } from 'hooks/useAnnouncementsImage' +// @ts-expect-error stylus files are not typed +import styles from './styles.styl' + interface AnnouncementsDialogContentProps { announcement: Announcement onSkip: () => void @@ -66,7 +70,13 @@ const AnnouncementsDialogContent: FC = ({ t('AnnouncementsDialogContent.dateFormat') )} -
+
{announcement.attributes.main_action ? ( diff --git a/src/components/Announcements/styles.styl b/src/components/Announcements/styles.styl new file mode 100644 index 0000000000..7cd61f439c --- /dev/null +++ b/src/components/Announcements/styles.styl @@ -0,0 +1,3 @@ +.announcement_content + ul + text-align left