File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/components/Announcements Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import React , { FC } from 'react'
2+
23import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
34import Typography from 'cozy-ui/transpiled/react/Typography'
45import Buttons from 'cozy-ui/transpiled/react/Buttons'
6+ import Markdown from 'cozy-ui/transpiled/react/Markdown'
57
68import { Announcement } from './types'
79import { useAnnouncementsImage } from 'hooks/useAnnouncementsImage'
@@ -65,9 +67,9 @@ const AnnouncementsDialogContent: FC<AnnouncementsDialogContentProps> = ({
6567 t ( 'AnnouncementsDialogContent.dateFormat' )
6668 ) }
6769 </ Typography >
68- < Typography align = " center" className = "u-mb-1 ">
69- { announcement . attributes . content }
70- </ Typography >
70+ < div className = "u-ta- center u-maw-100 ">
71+ < Markdown content = { announcement . attributes . content } />
72+ </ div >
7173 { announcement . attributes . main_action ? (
7274 < Buttons
7375 className = "u-mb-half"
You can’t perform that action at this time.
0 commit comments