File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ yarn-error.log
88/templates
99graphql.config.json
1010output /*
11+ <<<<<<< Updated upstream
1112.env
13+ =======
14+ .env *
15+ ! .env.template
16+ >>>>>>> Stashed changes
1217secrets
1318/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