Skip to content

Commit

Permalink
chore: fix circle ci and leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
thisyahlen-deriv committed Sep 27, 2023
1 parent 4601ef4 commit 76d9c29
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/wallets/src/components/WalletCard/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const WalletCard: React.FC<TProps> = ({ account }) => {
<WalletGradientBackground
currency={account?.currency_config?.display_code || 'USD'}
device='mobile'
has_shine
is_demo={account?.is_virtual}
hasShine
isDemo={account?.is_virtual}
type='card'
>
<div className='wallets-card__details'>
Expand All @@ -25,7 +25,7 @@ const WalletCard: React.FC<TProps> = ({ account }) => {
<div className='wallets-card__details-landing_company'>
{account?.landing_company_name && (
<WalletListCardBadge
is_demo={account?.is_virtual}
isDemo={account?.is_virtual}
label={account?.landing_company_name}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const WalletCashierHeader = () => {
{data?.currency} Wallet
</h1>
{data?.landing_company_name && (
<WalletListCardBadge is_demo={data?.is_virtual} label={data?.landing_company_name} />
<WalletListCardBadge isDemo={data?.is_virtual} label={data?.landing_company_name} />
)}
</div>
<p className='wallets-cashier-header__info__top-left__balance'>{data?.display_balance}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type TProps = {

const WalletCurrencyCard: React.FC<TProps> = ({ currency, isDemo, size = 'lg' }: TProps) => {
return (
<WalletGradientBackground currency={currency} is_demo={isDemo} type='card'>
<WalletGradientBackground currency={currency} isDemo={isDemo} type='card'>
<div className={`wallets-currency-card wallets-currency-card-${size}`}>
<WalletCardIcon size={size} type={currency} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const WalletTransferFromAccountCard: React.FC<TProps> = ({ account, type = 'moda
</div>
</div>
{type === 'modal' && (
<WalletListCardBadge is_demo={account?.is_virtual} label={account?.landing_company_name} />
<WalletListCardBadge isDemo={account?.is_virtual} label={account?.landing_company_name} />
)}
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const WalletTransferFormDropdown: React.FC<TProps> = ({ fieldName, initialAccoun
<div className='wallets-transfer-form-dropdown__icons'>
{selectedAccount && (
<WalletListCardBadge
is_demo={selectedAccount?.is_virtual}
isDemo={selectedAccount?.is_virtual}
label={selectedAccount?.landing_company_name}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type TProps = {
const WalletTransferFormInputField: React.FC<TProps> = ({ defaultValue, fieldName, fractionDigits = 2, label }) => {
const { setFieldValue } = useFormikContext();
const { onChange, value } = useInputATMFormatter(defaultValue, {
fraction_digits: fractionDigits,
fractionDigits,
});

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ import WalletsAddMoreCardContent from '../WalletsAddMoreCardContent';

type TWalletsAddMoreCard = NonNullable<ReturnType<typeof useAvailableWallets>['data']>[0];

const WalletsAddMoreCard = ({ currency, isAdded, landingCompanyName }: TWalletsAddMoreCard) => {
const WalletsAddMoreCard = ({
currency,
is_added: isAdded,
landing_company_name: landingCompanyName,
}: TWalletsAddMoreCard) => {
return (
<div className='wallets-add-more__card'>
<WalletGradientBackground currency={currency || 'USD'} device='mobile' hasShine type='card'>
<WalletsAddMoreCardBanner
currency={currency || 'USD'}
isAdded={isAdded}
landingCompanyName={landingCompanyName ?? ''}
is_added={isAdded}
landing_company_name={landingCompanyName ?? ''}
/>
</WalletGradientBackground>
<WalletsAddMoreCardContent currency={currency ?? ''} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import WalletAddMoreCurrencyIcon from '../WalletAddMoreCurrencyIcon';

type TWalletsAddMoreCardBannerProps = NonNullable<ReturnType<typeof useAvailableWallets>['data']>[0];

const WalletsAddMoreCardBanner = ({ currency, isAdded, landingCompanyName }: TWalletsAddMoreCardBannerProps) => {
const WalletsAddMoreCardBanner = ({
currency,
is_added: isAdded,
landing_company_name: landingCompanyName,
}: TWalletsAddMoreCardBannerProps) => {
return (
<div className='wallets-add-more__banner'>
<div className='wallets-add-more__banner-header'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const WalletsAddMoreCarousel = () => {
{availableWallets?.map(wallet => (
<WalletsAddMoreCard
currency={wallet.currency}
isAdded={wallet.is_added}
is_added={wallet.is_added}
key={`wallets_add_more_${wallet.currency}-${wallet.landing_company_name}`}
landingCompanyName={wallet.landing_company_name}
landing_company_name={wallet.landing_company_name}
/>
))}
</div>
Expand Down

0 comments on commit 76d9c29

Please sign in to comment.