File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ const YELLOW_PAPERS = {
4949 zh : YellowPaperZH ,
5050} ;
5151
52+ const Anchor = ( intl ) => ( ( children ) => (
53+ < a href = { WHITE_PAPERS [ intl . locale ] || WHITE_PAPERS [ intl . defaultLocale ] } rel = "noopener noreferrer" target = "_blank" >
54+ { children }
55+ </ a >
56+ ) ) ;
57+
5258const About = ( { intl } ) => (
5359 < Layout >
5460 < SEO lang = { intl . locale } title = { intl . formatMessage ( { id : "about.seo-title" } ) } />
@@ -61,11 +67,7 @@ const About = ({ intl }) => (
6167 < FormattedMessage
6268 id = "about.section-hero.h2"
6369 values = { {
64- anchor : ( children ) => (
65- < a href = { WHITE_PAPERS [ intl . locale ] || WHITE_PAPERS [ intl . defaultLocale ] } rel = "noopener noreferrer" target = "_blank" >
66- { children }
67- </ a >
68- ) ,
70+ anchor : Anchor ( intl )
6971 } }
7072 />
7173 </ h2 >
You can’t perform that action at this time.
0 commit comments