From 370802163c96906f50d741d8f15db25d41211ec4 Mon Sep 17 00:00:00 2001 From: Joseph Chalabi <100090645+chalabi2@users.noreply.github.com> Date: Tue, 17 Dec 2024 07:04:14 -0700 Subject: [PATCH] feat: add social links to sidebar (#149) --------- Co-authored-by: Felix C. Morency <1102868+fmorency@users.noreply.github.com> --- .gitignore | 2 ++ components/react/authSignerModal.tsx | 13 +++++++----- components/react/sideNav.tsx | 30 +++++++++++++++++++++++---- components/react/views/Connected.tsx | 4 +++- components/react/views/Connecting.tsx | 4 +++- components/react/views/Error.tsx | 4 +++- components/react/views/NotExist.tsx | 4 +++- components/react/views/WalletList.tsx | 9 ++++---- utils/logos.ts | 5 ++--- 9 files changed, 55 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index b5003554..0add2f24 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,5 @@ yarn-error.log* next-env.d.ts .idea/ + +certificates \ No newline at end of file diff --git a/components/react/authSignerModal.tsx b/components/react/authSignerModal.tsx index c11745c9..5a72c76f 100644 --- a/components/react/authSignerModal.tsx +++ b/components/react/authSignerModal.tsx @@ -1,12 +1,10 @@ -import { Fragment, useEffect } from 'react'; -import { Dialog, Transition } from '@headlessui/react'; +import { useEffect } from 'react'; import { SignData } from '@cosmos-kit/web3auth'; -import { SignDoc } from '@liftedinit/manifestjs/dist/codegen/cosmos/tx/v1beta1/tx'; import { TxBody, AuthInfo } from '@liftedinit/manifestjs/dist/codegen/cosmos/tx/v1beta1/tx'; import { decodePubkey } from '@cosmjs/proto-signing'; import { useWallet, useChain } from '@cosmos-kit/react'; -import Image from 'next/image'; import { getRealLogo } from '@/utils'; +import { useTheme } from '@/contexts'; type DisplayDataToSignProps = { data: SignData; @@ -121,6 +119,7 @@ const SignModal = ({ const { address } = useChain('manifest'); const walletIcon = wallet.wallet?.logo; const walletName = wallet.wallet?.prettyName; + const { theme } = useTheme(); useEffect(() => { const modal = document.getElementById('sign-modal') as HTMLDialogElement; @@ -138,7 +137,11 @@ const SignModal = ({
v{version}
+v{version}
+ +