Skip to content

Commit

Permalink
Merge pull request #817 from interlay/tom/hotifx/vault-onboarding
Browse files Browse the repository at this point in the history
Tom/hotifx/vault onboarding
  • Loading branch information
tomjeatt authored Jan 17, 2023
2 parents e319120 + 2d3d060 commit 09600e2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ REACT_APP_SQUID_URL="https://api-testnet.interlay.io/graphql/graphql"

REACT_APP_BITCOIN_NETWORK="mainnet"
REACT_APP_DEFAULT_ACCOUNT_SEED="//Alice"
REACT_APP_PARACHAIN_URL="wss://kintsugi.api.onfinality.io/public-ws/"
REACT_APP_PARACHAIN_URL="wss://api-kusama.interlay.io/parachain/explorer"
REACT_APP_FAUCET_URL="https://api-dev-kintsugi.interlay.io/faucet"
REACT_APP_RELAY_CHAIN_NAME="kusama"
REACT_APP_RELAY_CHAIN_URL="wss://kusama-rpc.polkadot.io"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "interbtc-ui",
"version": "2.26.0",
"version": "2.26.1",
"private": true,
"dependencies": {
"@craco/craco": "^6.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/component-library/CTA/CTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type CTAProps = Props & InheritAttrs & NativeAttrs;

const CTA = forwardRef<HTMLButtonElement, CTAProps>(
(
{ children, loading, disabled, variant = 'primary', fullWidth, size = 'medium', onPress, ...props },
{ children, loading, disabled, variant = 'primary', fullWidth, size = 'medium', onPress, onClick, ...props },
ref
): JSX.Element => {
const domRef = useDOMRef(ref);
Expand All @@ -49,7 +49,7 @@ const CTA = forwardRef<HTMLButtonElement, CTAProps>(
variant={variant}
size={size}
isFocusVisible={isFocusVisible}
{...mergeProps(props, buttonProps, focusProps)}
{...mergeProps(props, buttonProps, focusProps, { onClick })}
>
{loading && (
<LoadingWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ const DepositCollateralStep = ({
<>
<ModalHeader color='secondary'>{t('vault.deposit_collateral')}</ModalHeader>
<ModalDivider color='secondary' />
<ModalBody>
<form onSubmit={h(handleSubmit)}>
<form onSubmit={h(handleSubmit)}>
<ModalBody>
<Stack spacing='double'>
<TokenInput
aria-labelledby={titleId}
Expand Down Expand Up @@ -112,21 +112,21 @@ const DepositCollateralStep = ({
</StyledDItem>
</StyledDl>
</Stack>
{registerNewVaultMutation.isError && (
<ErrorModal
open={registerNewVaultMutation.isError}
onClose={() => registerNewVaultMutation.reset()}
title='Error'
description={registerNewVaultMutation.error?.message || ''}
/>
)}
</form>
</ModalBody>
<ModalFooter>
<CTA type='submit' disabled={isBtnDisabled} fullWidth loading={registerNewVaultMutation.isLoading}>
{t('vault.deposit_collateral')}
</CTA>
</ModalFooter>
</ModalBody>
<ModalFooter>
<CTA type='submit' disabled={isBtnDisabled} fullWidth loading={registerNewVaultMutation.isLoading}>
{t('vault.deposit_collateral')}
</CTA>
</ModalFooter>
</form>
{registerNewVaultMutation.isError && (
<ErrorModal
open={registerNewVaultMutation.isError}
onClose={() => registerNewVaultMutation.reset()}
title='Error'
description={registerNewVaultMutation.error?.message || ''}
/>
)}
</>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const DisclaimerStep = ({ onClickAgree }: DisclaimerStepProps): JSX.Element => {
</Stack>
</ModalBody>
<ModalFooter>
<CTA size='large' fullWidth onClick={onClickAgree}>
<CTA size='large' fullWidth onPress={onClickAgree}>
{t('vault.disclaimer.accept_risks_involved')}
</CTA>
<CTALink external to={INTERLAY_VAULT_DOCS_LINK} variant='secondary' size='large' fullWidth>
Expand Down

1 comment on commit 09600e2

@vercel
Copy link

@vercel vercel bot commented on 09600e2 Jan 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.