From e7a57ad3b28b9914e6f5a05e3e2ea512ccb36c2f Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Fri, 15 Sep 2023 15:45:51 +0800 Subject: [PATCH] fix svg --- src/libs/svg.js | 34 ++++++++++++++++++++++++ src/views/Content/LoadingIcon.js | 44 +++++--------------------------- 2 files changed, 41 insertions(+), 37 deletions(-) create mode 100644 src/libs/svg.js diff --git a/src/libs/svg.js b/src/libs/svg.js new file mode 100644 index 0000000..13c44d3 --- /dev/null +++ b/src/libs/svg.js @@ -0,0 +1,34 @@ +export const loadingSvg = ` + + + + + + + + + + + +`; diff --git a/src/views/Content/LoadingIcon.js b/src/views/Content/LoadingIcon.js index eef84f7..614a824 100644 --- a/src/views/Content/LoadingIcon.js +++ b/src/views/Content/LoadingIcon.js @@ -1,44 +1,14 @@ -import { DEFAULT_COLOR } from "../../config"; +import { loadingSvg } from "../../libs/svg"; export default function LoadingIcon() { return ( - - - - - - - - - - - + dangerouslySetInnerHTML={{ __html: loadingSvg }} + /> ); }