From ab3cfe79bcee1931bce390750125782aae73ded4 Mon Sep 17 00:00:00 2001 From: fmtabbara Date: Mon, 6 Dec 2021 12:57:46 +0000 Subject: [PATCH] use svgs as React components with svgr --- nym-wallet/package.json | 1 + nym-wallet/src/images/delegate.svg | 7 + nym-wallet/src/images/logo-background.svg | 2 - nym-wallet/src/layouts/AppLayout.tsx | 2 +- nym-wallet/src/routes/sign-in/sign-in.tsx | 70 +- nym-wallet/webpack.config.js | 7 +- nym-wallet/yarn.lock | 1464 ++++++++++++++++++++- 7 files changed, 1465 insertions(+), 88 deletions(-) create mode 100644 nym-wallet/src/images/delegate.svg diff --git a/nym-wallet/package.json b/nym-wallet/package.json index 7c5aa974d2..bf9f941351 100644 --- a/nym-wallet/package.json +++ b/nym-wallet/package.json @@ -36,6 +36,7 @@ "@babel/plugin-transform-async-to-generator": "^7.14.5", "@babel/preset-env": "^7.15.0", "@babel/preset-react": "^7.14.5", + "@svgr/webpack": "^6.1.1", "@tauri-apps/api": "^1.0.0-beta.6", "@tauri-apps/cli": "^1.0.0-beta.9", "@types/bs58": "^4.0.1", diff --git a/nym-wallet/src/images/delegate.svg b/nym-wallet/src/images/delegate.svg new file mode 100644 index 0000000000..9c11ad8d12 --- /dev/null +++ b/nym-wallet/src/images/delegate.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/nym-wallet/src/images/logo-background.svg b/nym-wallet/src/images/logo-background.svg index ad11626724..4a77afbf48 100644 --- a/nym-wallet/src/images/logo-background.svg +++ b/nym-wallet/src/images/logo-background.svg @@ -1,5 +1,3 @@ - - +