forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'components-shared-ts-migration-parent' of github.com:ji…
…m-deriv/deriv-app into shayan/74993/circular-progress-component-ts-migration
- Loading branch information
Showing
145 changed files
with
1,496 additions
and
985 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
14 changes: 0 additions & 14 deletions
14
packages/account/src/Components/demo-message/__test__/demo-message.spec.js
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
packages/account/src/Components/demo-message/__test__/demo-message.spec.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,11 @@ | ||
import React from 'react'; | ||
import { render, screen } from '@testing-library/react'; | ||
import DemoMessage from '../demo-message'; | ||
|
||
// eslint-disable-next-line react/display-name | ||
jest.mock('Components/icon-with-message', () => () => <div>DemoMessage</div>); | ||
|
||
it('should render DemoMessage component', () => { | ||
render(<DemoMessage />); | ||
expect(screen.getByText('DemoMessage')).toBeInTheDocument(); | ||
}); |
14 changes: 6 additions & 8 deletions
14
.../Components/demo-message/demo-message.jsx → .../Components/demo-message/demo-message.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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { localize } from '@deriv/translations'; | ||
import IconWithMessage from 'Components/icon-with-message'; | ||
|
||
const DemoMessage = ({ has_demo_icon, has_button }) => ( | ||
type TDemoMessage = { | ||
has_demo_icon?: boolean; | ||
has_button?: boolean; | ||
}; | ||
|
||
const DemoMessage = ({ has_demo_icon, has_button }: TDemoMessage) => ( | ||
<IconWithMessage | ||
icon={has_demo_icon ? 'IcPoaLockDemo' : 'IcPoaLock'} | ||
message={localize('This feature is not available for demo accounts.')} | ||
has_button={has_button} | ||
/> | ||
); | ||
|
||
DemoMessage.propTypes = { | ||
has_button: PropTypes.bool, | ||
has_demo_icon: PropTypes.bool, | ||
full_width: PropTypes.bool, | ||
}; | ||
|
||
export default DemoMessage; |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import DemoMessage from './demo-message'; | ||
|
||
export default DemoMessage; |
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
2 changes: 1 addition & 1 deletion
2
packages/account/src/Components/poi/idv-status/idv-limited/idv-limited.jsx
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
2 changes: 1 addition & 1 deletion
2
packages/account/src/Components/poi/idv-status/idv-rejected/idv-rejected.jsx
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
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
17 changes: 17 additions & 0 deletions
17
...c/Components/proof-of-identity-container-for-mt5/proof-of-identity-container-for-mt5.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,17 @@ | ||
.manual-poi { | ||
.dc-timeline { | ||
&__container { | ||
flex: 1; | ||
max-width: 63.4rem; | ||
|
||
@at-root .manual-poi--mobile .dc-timeline__container { | ||
max-width: none; | ||
} | ||
} | ||
&__title { | ||
font-size: var(--text-size-s); | ||
line-height: 2.4rem; | ||
margin: -4px 0 2.4rem; | ||
} | ||
} | ||
} |
19 changes: 0 additions & 19 deletions
19
packages/account/src/Components/text-container/__tests__/text-container.spec.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/account/src/Components/text-container/text-container.jsx
This file was deleted.
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
Oops, something went wrong.