Skip to content

Commit

Permalink
fix(modern-plugin): pre transform svg to component (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
10Derozan authored Mar 7, 2024
1 parent 15a9ae5 commit 0f97acf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nice-items-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modern-js/plugin-rspress': patch
---

fix: pre transform svg to component
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from '@rspress/core/theme';
import IconRight from './right.svg';
import IconRight from './arrow-right';
import styles from './Overview.module.scss';

type List = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { jsx } from "react/jsx-runtime";
import * as React from "react";
const SvgRight = (props) => /* @__PURE__ */ jsx("svg", { width: 24, height: 24, fill: "none", viewBox: "0 0 48 48", ...props, children: /* @__PURE__ */ jsx("path", { stroke: "#4E5969", strokeWidth: 2, d: "m16 39.513 15.556-15.557L16 8.4" }) });
export {
SvgRight as default
};

0 comments on commit 0f97acf

Please sign in to comment.