Skip to content

Commit

Permalink
[WALL] Lubega / WALL-4354 / Update wallets dropdown component with @d…
Browse files Browse the repository at this point in the history
…eriv-com/ui (deriv-com#15931)

* chore: update dropdown component with @deriv-com/ui

* fix: clean up code

* fix: failing component test

* fix: applied comments

* fix: updated walletlistcarddropdown structure

* fix: applied comments

* fix: failing checks

* fix: resolve conflicts

* fix: rerun vercel

* fix: update dropdown component

* fix: resolve error

* fix: resolved subtasks

* fix: add data-testid

* fix: data-testid
  • Loading branch information
lubega-deriv authored Jul 19, 2024
1 parent 2ab3238 commit 8030369
Show file tree
Hide file tree
Showing 29 changed files with 460 additions and 603 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@deriv-com/analytics": "1.5.9",
"@deriv-com/translations": "1.3.3",
"@deriv-com/utils": "^0.0.25",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv/api": "^1.0.0",
"@deriv-com/quill-ui": "1.13.17",
"@deriv/components": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cashier-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"start": "rimraf dist && npm run test && npm run serve"
},
"dependencies": {
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv-com/utils": "^0.0.25",
"@deriv/api-v2": "^1.0.0",
"@deriv/integration": "^1.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/cashier-v2/src/flows/FiatOnRamp/FiatOnRamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { useHistory } from 'react-router-dom';
import { useActiveAccount } from '@deriv/api-v2';
import { Dropdown, Loader, useDevice } from '@deriv-com/ui';
import ChevronIcon from '../../assets/images/chevron-icon.svg';
import { PageContainer } from '../../components';
import { FiatOnRampModule } from '../../lib';
import { TRouteTypes } from '../../types';
Expand Down Expand Up @@ -30,7 +29,6 @@ const FiatOnRamp: React.FC<TProps> = ({ path, routes }) => {
{isMobile && (
<Dropdown
data-testid='dt_routes_dropdown'
dropdownIcon={<ChevronIcon />}
isFullWidth
list={routeList}
listHeight='sm'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { Dropdown } from '@deriv-com/ui';
import ChevronIcon from '../../../../assets/images/chevron-icon.svg';
import { usePaymentAgentContext } from '../../provider';
import styles from './PaymentAgentMethodsDropdown.module.scss';

Expand All @@ -15,7 +14,6 @@ const PaymentAgentMethodsDropdown = () => {
return (
<div className={styles.container}>
<Dropdown
dropdownIcon={<ChevronIcon />}
isFullWidth
list={supportedPaymentMethodsList}
listHeight='sm'
Expand Down
2 changes: 1 addition & 1 deletion packages/cfd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
},
"dependencies": {
"@deriv-com/analytics": "1.5.9",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv-com/translations": "1.3.3",
"@deriv-com/utils": "^0.0.25",
"@deriv/account": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
"dependencies": {
"@contentpass/zxcvbn": "^4.4.3",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv/shared": "^1.0.0",
"@deriv/stores": "^1.0.0",
"@deriv/translations": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"@deriv-com/quill-tokens": "^2.0.4",
"@deriv-com/quill-ui": "1.13.17",
"@deriv-com/translations": "1.3.3",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv-com/utils": "^0.0.25",
"@deriv/account": "^1.0.0",
"@deriv/api": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/reports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
},
"dependencies": {
"@deriv-com/analytics": "1.5.9",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv/components": "^1.0.0",
"@deriv/deriv-api": "^1.0.15",
"@deriv/api-types": "1.0.172",
Expand Down
2 changes: 1 addition & 1 deletion packages/trader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"@deriv-com/quill-tokens": "^2.0.4",
"@deriv-com/quill-ui": "1.13.17",
"@deriv-com/utils": "^0.0.25",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv/api-types": "1.0.172",
"@deriv/components": "^1.0.0",
"@deriv/deriv-api": "^1.0.15",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ test.describe('Wallets - Crypto withdrawal', () => {
await page.goto(`${baseURL}/`);

await page.click('.wallets-textfield__field--listcard');
await page.click('#downshift-0-item-1');
await page.click('#wallets-listcard-dropdown__item-1');
});

test('render withdrawal form with all elements', async ({ baseURL, page }) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@deriv-com/analytics": "1.5.9",
"@deriv-com/ui": "^1.28.3",
"@deriv-com/ui": "1.29.3",
"@deriv-com/utils": "^0.0.25",
"@deriv/api-v2": "^1.0.0",
"@deriv/integration": "^1.0.0",
Expand Down

This file was deleted.

Loading

0 comments on commit 8030369

Please sign in to comment.