Skip to content

Commit

Permalink
feat: Add SafePal Wallet (#202)
Browse files Browse the repository at this point in the history
* add SafePal Wallet login

* fix build error

* feat: Add SafePal Wallet login

* fix: SafePalWallet.tsx build error

Co-authored-by: LinnDang <runningdanglin@gmail.com>
  • Loading branch information
SafePalWallet and LinnDang authored Mar 3, 2021
1 parent 4f55e95 commit da5c58c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/widgets/WalletModal/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import TokenPocket from "./icons/TokenPocket";
import TrustWallet from "./icons/TrustWallet";
import WalletConnect from "./icons/WalletConnect";
import BinanceChain from "./icons/BinanceChain";
import SafePalWallet from "./icons/SafePalWallet";
import { Config, ConnectorNames } from "./types";

const connectors: Config[] = [
Expand Down Expand Up @@ -37,6 +38,11 @@ const connectors: Config[] = [
icon: BinanceChain,
connectorId: ConnectorNames.BSC,
},
{
title: "SafePal Wallet",
icon: SafePalWallet,
connectorId: ConnectorNames.Injected,
},
];

export default connectors;
Expand Down
17 changes: 17 additions & 0 deletions src/widgets/WalletModal/icons/SafePalWallet.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import Svg from "../../../components/Svg/Svg";
import { SvgProps } from "../../../components/Svg/types";

const Icon: React.FC<SvgProps> = (props) => {
return (
<Svg viewBox="0 0 96 96" {...props}>
<circle cx="48" cy="48" r="48" fill="#F5F5F5" />
<path
d="M56.5504425,41.9387033 L56.5504425,50.4659601 L47.3948342,50.4659601 L47.3948342,85.5971142 L45.0078131,84.7075452 C43.8992633,84.2955753 42.1136272,83.5937969 39.9052997,82.5918134 L38.8675775,82.1177881 L38.8675775,14.6817622 L47.9569067,11.8769231 L56.5504425,14.5267861 L56.5504425,23.7259307 L47.9569067,21.0669705 L47.3948342,21.2411155 L47.3948342,41.9387033 L56.5504425,41.9387033 Z M16,50.4659926 L16,21.7739797 L36.1702794,15.548296 L36.1702794,24.7052039 L24.526282,28.3200122 L24.526282,41.9387358 L36.1702794,41.9387358 L36.1702794,81.3806284 L33.591244,80.0543973 C25.5662786,75.923652 16,68.9585019 16,59.2339983 L16,54.6496962 L24.526282,54.6496962 L24.526282,59.2339983 C24.526282,61.2460878 25.5734263,63.3605199 27.6426978,65.5373324 L27.6426978,50.4659926 L16,50.4659926 Z M59.1389325,15.3302574 L79.8040306,21.7261873 L79.8040306,50.4659601 L67.6710627,50.4659601 L67.6710627,62.9111544 C67.6710627,62.9111544 64.9581695,66.4674811 59.1464051,69.4451657 C59.1464051,67.0682164 59.1389325,15.3302574 59.1389325,15.3302574 Z M71.2780734,41.9387033 L71.2780734,28.2783928 L67.6710627,27.1649695 L67.6710627,41.9387033 L71.2780734,41.9387033 Z M71.2780734,59.8661186 L71.2780734,54.6495662 L79.8040306,54.6495662 L79.8040306,59.8661186 C79.8040306,74.3588162 58.7760221,82.7005566 52.330058,84.9127828 L49.9859233,85.7230769 L49.9859233,76.7068496 L51.1311866,76.2744112 C61.1591444,72.5004032 71.2780734,65.962818 71.2780734,59.8661186 Z"
fill="#000000"
/>
</Svg>
);
};

export default Icon;

0 comments on commit da5c58c

Please sign in to comment.