Skip to content

Commit

Permalink
fix: replaced svgs with quill icons
Browse files Browse the repository at this point in the history
  • Loading branch information
nada-deriv committed Jul 31, 2024
1 parent 799aca9 commit 3fef459
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 46 deletions.
8 changes: 4 additions & 4 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@deriv-com/translations": "^1.2.4",
"@deriv-com/ui": "^1.29.0",
"@deriv-com/utils": "^0.0.28",
"@deriv/quill-icons": "^1.23.7",
"@deriv/quill-icons": "^1.23.8",
"@sendbird/chat": "^4.11.3",
"@svgr/rollup": "^8.1.0",
"@tanstack/react-query": "^5.28.14",
Expand Down
2 changes: 0 additions & 2 deletions src/assets/blog.svg

This file was deleted.

9 changes: 0 additions & 9 deletions src/assets/introducing-deriv-p2p.svg

This file was deleted.

11 changes: 0 additions & 11 deletions src/assets/p2p-unavailable.svg

This file was deleted.

9 changes: 0 additions & 9 deletions src/assets/use-deriv-p2p.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/BlockedScenarios/BlockedScenarios.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ReactComponent as P2pUnavailable } from '@/assets/p2p-unavailable.svg';
import { useLiveChat } from '@/hooks';
import {
DerivLightIcCashierBlockedIcon,
DerivLightIcCashierLockedIcon,
DerivLightIcCashierUnderMaintenanceIcon,
DerivLightWalletCurrencyUnavailableIcon as P2pUnavailable,
} from '@deriv/quill-icons';
import { Localize } from '@deriv-com/translations';
import { ActionScreen, Button, Text, useDevice } from '@deriv-com/ui';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TFormState, THooks, TPaymentMethod, TSelectedPaymentMethod } from 'types';
import { LabelPairedSearchMdRegularIcon, LegacyCloseCircle1pxIcon } from '@deriv/quill-icons';
import { LabelPairedSearchMdRegularIcon, LegacyCloseCircle1pxBlackIcon } from '@deriv/quill-icons';
import { Localize, useTranslations } from '@deriv-com/translations';
import { Button, Dropdown, Input, Text } from '@deriv-com/ui';

Expand Down Expand Up @@ -29,7 +29,7 @@ const PaymentMethodFormAutocomplete = ({
label={localize('Choose your payment method')}
rightPlaceholder={
actionType === 'EDIT' ? null : (
<LegacyCloseCircle1pxIcon
<LegacyCloseCircle1pxBlackIcon
className='payment-method-form__icon--close'
data-testid='dt_payment_methods_form_close_icon'
fill='#999999'
Expand Down
9 changes: 7 additions & 2 deletions src/components/Search/Search.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCallback, useState } from 'react';
import clsx from 'clsx';
import { LabelPairedSearchMdRegularIcon, LegacyCloseCircle1pxIcon } from '@deriv/quill-icons';
import { LabelPairedSearchMdRegularIcon, LegacyCloseCircle1pxBlackIcon } from '@deriv/quill-icons';
import { Input } from '@deriv-com/ui';
import './Search.scss';

Expand Down Expand Up @@ -48,7 +48,12 @@ const Search = ({ delayTimer = 500, hideBorder = false, name, onSearch, placehol
onChange={handleInputChange}
rightPlaceholder={
searchValue && (
<LegacyCloseCircle1pxIcon className='cursor-pointer' iconSize='xs' onClick={clearSearch} />
<LegacyCloseCircle1pxBlackIcon
className='cursor-pointer'
fill='#999'
iconSize='xs'
onClick={clearSearch}
/>
)
}
type='search'
Expand Down
3 changes: 1 addition & 2 deletions src/pages/guide/screens/Blog/Blog.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//TODO: Replace this with Quill icon once ready
import { ReactComponent as BlogIcon } from '@/assets/blog.svg';
import { HOW_TO_PROTECT_YOURSELF_URL } from '@/constants';
import { DerivLightP2pSecureImageIcon as BlogIcon } from '@deriv/quill-icons';
import { Localize } from '@deriv-com/translations';
import { Text, useDevice } from '@deriv-com/ui';
import { Carousel } from '../../components';
Expand Down
8 changes: 5 additions & 3 deletions src/pages/guide/screens/Videos/Videos.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { useState } from 'react';
import { ReactComponent as IntroducingDerivP2PIcon } from '@/assets/introducing-deriv-p2p.svg';
import { ReactComponent as UseDerivP2PIcon } from '@/assets/use-deriv-p2p.svg';
import { VideoPlayerModal } from '@/components/Modals';
import { HOW_TO_USE_DERIV_P2P_URL, INTRODUCING_DERIV_P2P_URL } from '@/constants';
import { useModalManager } from '@/hooks/custom-hooks';
import { StandalonePlayFillIcon } from '@deriv/quill-icons';
import {
DerivLightP2pAppImageIcon as UseDerivP2PIcon,
DerivLightP2pBannerImageIcon as IntroducingDerivP2PIcon,
StandalonePlayFillIcon,
} from '@deriv/quill-icons';
import { Localize } from '@deriv-com/translations';
import { Text, useDevice } from '@deriv-com/ui';
import { Carousel } from '../../components';
Expand Down

0 comments on commit 3fef459

Please sign in to comment.