File tree Expand file tree Collapse file tree 5 files changed +26
-18
lines changed
products/statement-generator/src Expand file tree Collapse file tree 5 files changed +26
-18
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ const useStyles = makeStyles(() =>
1515 verticalAlign : 'middle' ,
1616 } ,
1717 link : {
18- color : '#25003F'
19- }
18+ color : '#25003F' ,
19+ } ,
2020 } )
2121) ;
2222
@@ -27,12 +27,16 @@ const DynamicLink = (props: React.AnchorHTMLAttributes<HTMLAnchorElement>) => {
2727
2828 return (
2929 < >
30- < a className = { classes . link } { ...rest } > { children } </ a >
31- { isExternalLink && < LaunchOutlined fontSize = "small" className = { classes . externalLinkIcon } /> }
30+ < a className = { classes . link } { ...rest } >
31+ { children }
32+ </ a >
33+ { isExternalLink && (
34+ < LaunchOutlined fontSize = "small" className = { classes . externalLinkIcon } />
35+ ) }
3236 </ >
33- )
37+ ) ;
3438} ;
3539
3640export default function DynamicText ( { i18nkey } : any ) {
3741 return < Trans i18nKey = { i18nkey } components = { { Link : < DynamicLink /> } } /> ;
38- }
42+ }
Original file line number Diff line number Diff line change @@ -95,9 +95,7 @@ export const FAQAccordion: React.FC<CustomAccordionProps> = ({
9595 < AccordionDetails style = { { padding : 0 , width : '100%' } } >
9696 < div className = { classes . accordionDetailsContainer } >
9797 { content &&
98- content . map ( ( paragraph ) => (
99- < DynamicText i18nkey = { paragraph } />
100- ) ) }
98+ content . map ( ( paragraph ) => < DynamicText i18nkey = { paragraph } /> ) }
10199 { children && children }
102100 </ div >
103101 </ AccordionDetails >
Original file line number Diff line number Diff line change @@ -113,23 +113,23 @@ const BeforeYouBegin = () => {
113113
114114 < h6 > { t ( 'before_you_begin_page.sectionTitle1' ) } </ h6 >
115115 < p >
116- < DynamicText i18nkey = ' before_you_begin_page.sectionParagraph1' />
116+ < DynamicText i18nkey = " before_you_begin_page.sectionParagraph1" />
117117 </ p >
118118 < h6 > { t ( 'before_you_begin_page.sectionTitle2' ) } </ h6 >
119119 < p >
120- < DynamicText i18nkey = ' before_you_begin_page.sectionParagraph2' />
120+ < DynamicText i18nkey = " before_you_begin_page.sectionParagraph2" />
121121 </ p >
122122 < h6 > { t ( 'before_you_begin_page.sectionTitle3' ) } </ h6 >
123123 < p >
124- < DynamicText i18nkey = ' before_you_begin_page.sectionParagraph3' />
124+ < DynamicText i18nkey = " before_you_begin_page.sectionParagraph3" />
125125 </ p >
126126 < div className = { classes . alert } >
127127 < span >
128128 < ErrorRoundedIcon style = { { color : '#2F6FED' } } />
129129 </ span >
130130 < h6 > { t ( 'before_you_begin_page.sectionTitle4' ) } </ h6 >
131131 < p >
132- < DynamicText i18nkey = ' before_you_begin_page.sectionParagraph4' />
132+ < DynamicText i18nkey = " before_you_begin_page.sectionParagraph4" />
133133 </ p >
134134 </ div >
135135 < FlowNavigation />
Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import { makeStyles , createStyles , Link } from '@material-ui/core' ;
2+ import { makeStyles , createStyles } from '@material-ui/core' ;
33import { useTranslation } from 'react-i18next' ;
44import ButtonComponent from 'components/Button' ;
55import DynamicText from 'components/DynamicText' ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
2020 FileCopyRounded ,
2121 MenuRounded ,
2222 VisibilityRounded ,
23- Launch
23+ Launch ,
2424} from '@material-ui/icons' ;
2525
2626import useUtilityStyles from 'styles/utilityStyles' ;
@@ -608,7 +608,11 @@ export const Filter: React.FC = () => {
608608 < p > Used on: { credit . usedIn } </ p >
609609 < p > Artist: { credit . artist } </ p >
610610 < p >
611- Provider: < a href = { credit . providerLink } > { credit . provider } </ a > < Launch className = { utilityClasses . externalLinkIcon } fontSize = "small" />
611+ Provider: < a href = { credit . providerLink } > { credit . provider } </ a > { ' ' }
612+ < Launch
613+ className = { utilityClasses . externalLinkIcon }
614+ fontSize = "small"
615+ />
612616 </ p >
613617 </ div >
614618 { credit . img && (
@@ -618,14 +622,16 @@ export const Filter: React.FC = () => {
618622 ) }
619623 { credit . icon && (
620624 < div className = { classes . creditIconContainer } >
621- < credit . icon style = { { color : credit . iconColor || 'inherit' } } />
625+ < credit . icon
626+ style = { { color : credit . iconColor || 'inherit' } }
627+ />
622628 </ div >
623629 ) }
624630 </ div >
625631 </ div >
626632 ) ) }
627633 </ div >
628- )
634+ ) ;
629635 } ;
630636
631637 const FilterButton = ( { name } : FilterButtonProps ) => (
You can’t perform that action at this time.
0 commit comments