File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,15 @@ yarn-error.log
88/templates
99graphql.config.json
1010output /*
11+ <<<<<<< Updated upstream
1112.env
13+ <<<<<<< Updated upstream
1214.env.local
15+ =======
16+ =======
17+ .env *
18+ ! .env.template
19+ >>>>>>> Stashed changes
20+ >>>>>>> Stashed changes
1321secrets
1422/test /results /*
Original file line number Diff line number Diff line change 11import React , { useRef , useEffect } from 'react' ;
22import PropTypes from 'prop-types' ;
3+ import omit from 'lodash/omit' ;
34
4- const InlineSVG = ( { src , ... otherProps } ) => {
5+ const InlineSVG = props => {
56 return (
6- < div
7- // eslint-disable-next-line react/no-danger
8- dangerouslySetInnerHTML = { { __html : src } }
9- { ...otherProps }
10- />
7+ < div { ...omit ( props , 'src' ) } >
8+ < iframe
9+ title = "SVG"
10+ srcDoc = { `<html><body>${ props . src } </body></html>` }
11+ style = { { border : 'none' , width : '100%' , height : '100%' } }
12+ />
13+ </ div >
1114 ) ;
1215} ;
1316
You can’t perform that action at this time.
0 commit comments