Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
Prevent ID in inlined SVG to avoid duplicate IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
RoelN authored and pascalw committed Sep 1, 2017
1 parent 198a240 commit 72b5684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_template/src/components/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { h } from "preact";

export default props => {
const icon = require(`src/styles/icons/${props.id}.svg`).default;
return <svg {...props}><use xlinkHref={icon.url} /></svg>;
return <svg><use xlinkHref={icon.url} /></svg>;
};

0 comments on commit 72b5684

Please sign in to comment.