Skip to content

Commit

Permalink
fix: update gatsby-plugin-svgr-svgo
Browse files Browse the repository at this point in the history
  • Loading branch information
lnikell committed May 4, 2021
1 parent 9198a09 commit e80e29b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"gatsby-plugin-react-helmet": "^4.2.0",
"gatsby-plugin-sass": "^4.3.0-next.0",
"gatsby-plugin-sharp": "^3.2.0",
"gatsby-plugin-svgr-svgo": "^1.2.0",
"gatsby-plugin-svgr-svgo": "^1.2.2",
"gatsby-source-filesystem": "^3.2.0",
"gatsby-transformer-sharp": "^3.2.0",
"husky": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/images/example.inline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react';

import Link from 'components/shared/link';
import ExampleInlineSVG from 'images/example.inline.svg';
import exampleUrlSvg from 'images/example.svg';
import MainLayout from 'layouts/main';

const IndexPage = () => (
Expand All @@ -11,7 +13,8 @@ const IndexPage = () => (
<div className="column">2</div>
<div className="column">3</div>
</div>

Inline SVG: <ExampleInlineSVG />
URL SVG: <img src={exampleUrlSvg} alt="" />
<Link to="/page-2">Page 2</Link>
</div>
</MainLayout>
Expand Down
4 changes: 0 additions & 4 deletions src/pages/page-2.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import React from 'react';

import Link from 'components/shared/link';
import ExampleInlineSVG from 'images/example.inline.svg';
import exampleUrlSvg from 'images/example.svg';
import MainLayout from 'layouts/main';

const IndexPage = () => (
<MainLayout>
<div className="container">
Inline SVG: <ExampleInlineSVG />
URL SVG: <img src={exampleUrlSvg} alt="" />
<Link to="/">Back</Link>
</div>
</MainLayout>
Expand Down

0 comments on commit e80e29b

Please sign in to comment.