Skip to content

Commit

Permalink
delete instead of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Dec 12, 2024
1 parent 6d24aac commit a89466a
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 415 deletions.
297 changes: 0 additions & 297 deletions packages/ui/src/components/DeepTxAlert.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions packages/ui/src/components/Transactions/TransactionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useAccounts } from '../../contexts/AccountsContext'
import { MdOutlineFlare as FlareIcon } from 'react-icons/md'
import Transaction from './Transaction'
import { useMemo } from 'react'
// import { DeepTxAlert } from '../DeepTxAlert'

interface Props {
className?: string
Expand All @@ -25,18 +24,9 @@ const TransactionList = ({ className }: Props) => {
refresh
} = usePendingTx(multisigAddresses)
const { ownAddressList } = useAccounts()
// const pendingTxCallData = useMemo(() => {
// return Object.values(txWithCallDataByDate)
// .reduce((acc, curr) => {
// return [...acc, ...curr]
// }, [])
// .map(({ callData }) => callData)
// .filter((a) => !!a) as string[]
// }, [txWithCallDataByDate])

return (
<Box className={className}>
{/* <DeepTxAlert pendingTxCallData={pendingTxCallData} /> */}
<h3>Transactions</h3>
{isLoadingPendingTxs && (
<LoaderStyled>
Expand Down
27 changes: 0 additions & 27 deletions packages/ui/src/contexts/ModalsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import WCSessionProposal from '../components/modals/WalletConnectSessionProposal
import ProposalSigningModal, { SigningModalProps } from '../components/modals/ProposalSigning'
import WalletConnectSigning from '../components/modals/WalletConnectSigning'
import { useMultiProxy } from './MultiProxyContext'
// import DeepTxCreationModal, { DeepTxCreationProps } from '../components/modals/DeepTxCreation'

interface ModalsContextProps {
setIsEditModalOpen: (isOpen: boolean) => void
Expand All @@ -17,8 +16,6 @@ interface ModalsContextProps {
onCloseSendModal: () => void
openWalletConnectSessionModal: ({ sessionProposal }: OpenWCModalParams) => void
onOpenSigningModal: (info: SigningInfo) => void
// onOpenDeepTxModal: (info: DeepTxModalInfo) => void
// onCloseDeepTxModal: () => void
onOpenWalletConnectSigning: (request: SignClientTypes.EventArguments['session_request']) => void
}

Expand All @@ -37,8 +34,6 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => {
const [isSendModalOpen, setIsSendModalOpen] = useState(false)
const [isWCModalOpen, setIsWCModalOpen] = useState(false)
const [isSigningModalOpen, setIsSigningModalOpen] = useState(false)
// const [isDeepTxModalOpen, setIsDeepTxModalOpen] = useState(false)
// const [deepTxModalInfo, setDeepTxModalInfo] = useState<DeepTxModalInfo | undefined>()
const [signingModalInfo, setSigningModalInfo] = useState<SigningInfo | undefined>()
const [isOpenWalletConnectSigning, setIsOpenWalletConnectSigning] = useState(false)
const [sendModalPreselection, setSendModalPreselection] = useState<EasyTransferTitle>(
Expand Down Expand Up @@ -100,16 +95,6 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => {
setIsSigningModalOpen(true)
}, [])

// const onOpenDeepTxModal = useCallback((info: DeepTxModalInfo) => {
// setDeepTxModalInfo(info)
// setIsDeepTxModalOpen(true)
// }, [])

// const onCloseDeepTxModal = useCallback(() => {
// setDeepTxModalInfo(undefined)
// setIsDeepTxModalOpen(false)
// }, [])

const onOpenWalletConnectSigning = useCallback(
(request: SignClientTypes.EventArguments['session_request']) => {
setWalletConnectRequest(request)
Expand All @@ -133,8 +118,6 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => {
openWalletConnectSessionModal,
onOpenSigningModal,
onOpenWalletConnectSigning
// onOpenDeepTxModal,
// onCloseDeepTxModal
}}
>
{children}
Expand Down Expand Up @@ -162,16 +145,6 @@ const ModalsContextProvider = ({ children }: React.PropsWithChildren) => {
onSuccess={signingModalInfo.onSuccess}
/>
)}
{/* {isDeepTxModalOpen && deepTxModalInfo && (
<DeepTxCreationModal
possibleSigners={deepTxModalInfo.possibleSigners}
onClose={onCloseDeepTxModal}
proposalData={deepTxModalInfo.proposalData}
onSuccess={deepTxModalInfo.onSuccess}
parentMultisigInfo={deepTxModalInfo.parentMultisigInfo}
currentMultisigInvolved={deepTxModalInfo.currentMultisigInvolved}
/>
)} */}
{isOpenWalletConnectSigning && !!walletConnectRequest && (
<WalletConnectSigning
onClose={onCloseWalletConnectSigning}
Expand Down
Loading

0 comments on commit a89466a

Please sign in to comment.