Skip to content

Commit

Permalink
fix: tsc errors
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Nov 18, 2024
1 parent f32b1b5 commit c9ded60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/tx/confirmation-views/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { TxModalContext } from '@/components/tx-flow'
import { isSettingsChangeView, isChangeThresholdView, isConfirmBatchView } from './utils'
import { OnChainConfirmation } from '@/components/transactions/TxDetails/TxData/NestedTransaction/OnChainConfirmation'
import { ExecTransaction } from '@/components/transactions/TxDetails/TxData/NestedTransaction/ExecTransaction'
import { type ReactElement } from 'react'

type ConfirmationViewProps = {
txDetails?: TransactionDetails
Expand All @@ -38,7 +39,7 @@ const getConfirmationViewComponent = ({
txDetails,
txInfo,
txFlow,
}: NarrowConfirmationViewProps & { txFlow?: JSX.Element }) => {
}: NarrowConfirmationViewProps & { txFlow?: ReactElement }) => {
if (isChangeThresholdView(txInfo)) return <ChangeThreshold txDetails={txDetails} />

if (isConfirmBatchView(txFlow)) return <BatchTransactions />
Expand Down
8 changes: 4 additions & 4 deletions src/features/proposers/components/DeleteProposerDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type DeleteProposerProps = {
proposer: Delegate
}

const _DeleteProposer = ({ wallet, safeAddress, chainId, proposer }: DeleteProposerProps) => {
const InternalDeleteProposer = ({ wallet, safeAddress, chainId, proposer }: DeleteProposerProps) => {
const [open, setOpen] = useState<boolean>(false)
const [error, setError] = useState<Error>()
const [isLoading, setIsLoading] = useState<boolean>(false)
Expand Down Expand Up @@ -112,8 +112,8 @@ const _DeleteProposer = ({ wallet, safeAddress, chainId, proposer }: DeletePropo
isOk && canDelete
? 'Delete proposer'
: isOk && !canDelete
? 'Only the owner of this proposer or the proposer itself can delete them'
: undefined
? 'Only the owner of this proposer or the proposer itself can delete them'
: undefined
}
>
<span>
Expand Down Expand Up @@ -198,7 +198,7 @@ const _DeleteProposer = ({ wallet, safeAddress, chainId, proposer }: DeletePropo
)
}

const DeleteProposerDialog = madProps(_DeleteProposer, {
const DeleteProposerDialog = madProps(InternalDeleteProposer, {
wallet: useWallet,
chainId: useChainId,
safeAddress: useSafeAddress,
Expand Down

0 comments on commit c9ded60

Please sign in to comment.