Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ikprk committed Jul 11, 2024
1 parent 009173b commit 5ccbf6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type HandleTransactionOpts<T extends ExtrinsicResult> = {
onTxFinalize?: (data: T) => Promise<unknown>
onTxSuccess?: (data: T) => Promise<unknown>
onTxSync?: (data: T, metaStatus?: MetaprotocolTransactionResultFieldsFragment) => Promise<unknown>
onError?: () => void
onError?: (error: unknown) => void
snackbarSuccessMessage?: DisplaySnackbarArgs
minimized?: {
errorMessage: string
Expand Down Expand Up @@ -265,7 +265,7 @@ export const useTransaction = (): HandleTransactionFn => {

return true
} catch (error) {
onError?.()
onError?.(error)

const errorName = error.name as JoystreamLibErrorType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -624,13 +624,10 @@ export const BenefitsContainer = ({ children, title }: { children: ReactNode[] |
)
}

type UploadStatusGroupProps = {
isActive?: boolean
}

type DrawerProps = {
maxHeight?: number
} & UploadStatusGroupProps
isActive?: boolean
}

const StyledGridItem = styled(GridItem)`
background: ${cVar('colorBackgroundMuted')};
Expand Down

0 comments on commit 5ccbf6a

Please sign in to comment.