-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TRAH5305] Suisin/chore: add alpha generation guide to mt5 except gold (
#17982) * chore: add alpha generation guide to mt5 except gold * chore: update to check windows only * chore: fix test case * fix: dmt5 test case fail issue
- Loading branch information
1 parent
5f63d99
commit 925907c
Showing
13 changed files
with
209 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
4 changes: 4 additions & 0 deletions
4
packages/components/src/components/information-banner/index.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,4 @@ | ||
import InformationBanner from './information-banner'; | ||
import './information-banner.scss'; | ||
|
||
export default InformationBanner; |
29 changes: 29 additions & 0 deletions
29
packages/components/src/components/information-banner/information-banner.scss
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,29 @@ | ||
.information-banner { | ||
display: flex; | ||
padding: 1.6rem; | ||
background: #e7f2f4; | ||
border-radius: 2 * $BORDER_RADIUS; | ||
justify-content: space-between; | ||
margin-top: 1.6rem; | ||
cursor: pointer; | ||
|
||
&__content { | ||
display: flex; | ||
|
||
&-text { | ||
display: flex; | ||
margin-inline-start: 0.4rem; | ||
flex-direction: column; | ||
padding-top: 0.3rem; | ||
} | ||
} | ||
|
||
&__title { | ||
font-weight: 700 !important; | ||
color: #095a66 !important; | ||
} | ||
|
||
&__description { | ||
color: #095a66 !important; | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
packages/components/src/components/information-banner/information-banner.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,34 @@ | ||
import React from 'react'; | ||
import { Text } from '@deriv-com/ui'; | ||
|
||
type TInformationBanner = { | ||
information_icon: React.ReactNode; | ||
title: React.ReactNode; | ||
description: React.ReactNode; | ||
redirect_icon: React.ReactNode; | ||
link: string; | ||
}; | ||
|
||
const InformationBanner = ({ information_icon, title, description, redirect_icon, link }: TInformationBanner) => { | ||
const handleClick = () => { | ||
window.open(link, '_blank'); | ||
}; | ||
return ( | ||
<div className='information-banner' onClick={handleClick}> | ||
<div className='information-banner__content'> | ||
{information_icon} | ||
<div className='information-banner__content-text'> | ||
<Text size='sm' className='information-banner__title'> | ||
{title} | ||
</Text> | ||
<Text size='xs' className='information-banner__description'> | ||
{description} | ||
</Text> | ||
</div> | ||
</div> | ||
{redirect_icon} | ||
</div> | ||
); | ||
}; | ||
|
||
export default InformationBanner; |
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
29 changes: 29 additions & 0 deletions
29
packages/wallets/src/components/InformationBanner/InformationBanner.scss
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,29 @@ | ||
.wallets-information-banner { | ||
display: flex; | ||
padding: 1.6rem; | ||
background: #e7f2f4; | ||
border-radius: 2 * $BORDER_RADIUS; | ||
justify-content: space-between; | ||
margin-top: 1.6rem; | ||
cursor: pointer; | ||
|
||
&__content { | ||
display: flex; | ||
|
||
&-text { | ||
display: flex; | ||
margin-inline-start: 0.4rem; | ||
flex-direction: column; | ||
padding-top: 0.3rem; | ||
} | ||
} | ||
|
||
&__title { | ||
font-weight: 700; | ||
color: #095a66; | ||
} | ||
|
||
&__description { | ||
color: #095a66; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
packages/wallets/src/components/InformationBanner/InformationBanner.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,35 @@ | ||
import React from 'react'; | ||
import { Text } from '@deriv-com/ui'; | ||
import './InformationBanner.scss'; | ||
|
||
type TInformationBanner = { | ||
description: React.ReactNode; | ||
informationIcon: React.ReactNode; | ||
link: string; | ||
redirectIcon: React.ReactNode; | ||
title: React.ReactNode; | ||
}; | ||
|
||
const InformationBanner = ({ description, informationIcon, link, redirectIcon, title }: TInformationBanner) => { | ||
const handleClick = () => { | ||
window.open(link, '_blank'); | ||
}; | ||
return ( | ||
<div className='wallets-information-banner' onClick={handleClick}> | ||
<div className='wallets-information-banner__content'> | ||
{informationIcon} | ||
<div className='wallets-information-banner__content-text'> | ||
<Text className='wallets-information-banner__title' size='sm'> | ||
{title} | ||
</Text> | ||
<Text className='wallets-information-banner__description' size='xs'> | ||
{description} | ||
</Text> | ||
</div> | ||
</div> | ||
{redirectIcon} | ||
</div> | ||
); | ||
}; | ||
|
||
export default InformationBanner; |
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 InformationBanner } from './InformationBanner'; |
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