-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WALL] Lubega / WALL-3675 / Demo ctrader design updates (#14398)
* fix: demo ctrader design updates * fix: applied comments * fix: missing prop * fix: missing prop * fix: applied comments * fix: applied comments
- Loading branch information
1 parent
e8a6d0b
commit 9c25063
Showing
9 changed files
with
65 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ets/src/features/cfd/modals/CTraderSuccessModal/components/CTraderSuccessModalButtons.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
import { useHistory } from 'react-router-dom'; | ||
import { WalletButton, WalletButtonGroup } from '../../../../../components'; | ||
|
||
type TCTraderSuccessModalButtons = { | ||
hide: () => void; | ||
isDemo: boolean; | ||
}; | ||
|
||
const CTraderSuccessModalButtons = ({ hide, isDemo }: TCTraderSuccessModalButtons) => { | ||
const history = useHistory(); | ||
|
||
if (isDemo) { | ||
return ( | ||
<div className='wallets-success-btn'> | ||
<WalletButton isFullWidth onClick={hide} size='lg'> | ||
OK | ||
</WalletButton> | ||
</div> | ||
); | ||
} | ||
|
||
return ( | ||
<WalletButtonGroup isFlex isFullWidth> | ||
<WalletButton onClick={hide} size='lg' variant='outlined'> | ||
Maybe later | ||
</WalletButton> | ||
<WalletButton | ||
onClick={() => { | ||
hide(); | ||
history.push('/wallets/cashier/transfer'); | ||
}} | ||
size='lg' | ||
> | ||
Transfer funds | ||
</WalletButton> | ||
</WalletButtonGroup> | ||
); | ||
}; | ||
|
||
export default CTraderSuccessModalButtons; |
1 change: 1 addition & 0 deletions
1
packages/wallets/src/features/cfd/modals/CTraderSuccessModal/components/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as CTraderSuccessModalButtons } from './CTraderSuccessModalButtons'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,6 @@ | |
|
||
@include mobile { | ||
padding: 0.8rem; | ||
height: 6rem; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters