File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Button , ButtonProps } from "@mui/material" ;
2+ import { useDefaultGateway , useOnBoarding } from "../../hooks/index.ts" ;
3+ import { isUndefined } from "@xylabs/typeof" ;
4+
5+ export const SubmitTransactionButton : React . FC < ButtonProps > = ( props ) => {
6+ const { gateway } = useDefaultGateway ( )
7+ const { showSubmitTransaction } = useOnBoarding ( )
8+
9+ return showSubmitTransaction ? < Button variant = "contained" disabled = { isUndefined ( gateway ) } sx = { { alignSelf : 'start' } } { ...props } > Submit Transaction</ Button > : null
10+ }
Original file line number Diff line number Diff line change 1+ export * from './SubmitTransactionButton.tsx'
Original file line number Diff line number Diff line change 11export * from './alerts/index.ts'
22export * from './Onboarding.tsx'
3- export * from './WelcomeStack.tsx'
3+ export * from './WelcomeStack.tsx'
4+ export * from './buttons/index.ts'
You can’t perform that action at this time.
0 commit comments