From 96dc5e08ccad5f11e39667d60fc9d218f23331b9 Mon Sep 17 00:00:00 2001
From: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com>
Date: Wed, 21 Apr 2021 18:44:18 -0500
Subject: [PATCH] feat: torus
---
packages/common/src/components/Settings/index.tsx | 12 +++++++++++-
packages/common/src/wallet-adapters/torus/index.tsx | 13 +++----------
2 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/packages/common/src/components/Settings/index.tsx b/packages/common/src/components/Settings/index.tsx
index d8e8b8d..6e97706 100644
--- a/packages/common/src/components/Settings/index.tsx
+++ b/packages/common/src/components/Settings/index.tsx
@@ -2,13 +2,17 @@ import React from 'react';
import { Button, Select } from 'antd';
import { useWallet } from '../../contexts/wallet';
import { ENDPOINTS, useConnectionConfig } from '../../contexts/connection';
+import { shortenAddress } from '../../utils';
+import {
+ CopyOutlined
+} from '@ant-design/icons';
export const Settings = ({
additionalSettings,
}: {
additionalSettings?: JSX.Element;
}) => {
- const { connected, disconnect, select } = useWallet();
+ const { connected, disconnect, select, wallet } = useWallet();
const { endpoint, setEndpoint } = useConnectionConfig();
return (
@@ -29,6 +33,12 @@ export const Settings = ({
{connected && (
<>
Wallet:
+ {wallet?.publicKey && ()}
+