Skip to content

Commit

Permalink
fix: overwritten styles (binary-com#9899)
Browse files Browse the repository at this point in the history
* fix: overwritten styles

* fix: overwritten styles
  • Loading branch information
hamid-deriv committed Aug 30, 2023
1 parent 24f0323 commit 0bdd7dd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/wallets/src/AppContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import './app-content.scss';
const AppContent: React.FC = () => {
return (
<div>
<div className='icon' />
<div className='wallet-app-content-icon' />
<IcBrandDerivGo width={25} height={25} />
<WalletList />
<WalletsCarousel />
Expand Down
2 changes: 1 addition & 1 deletion packages/wallets/src/app-content.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.icon {
.wallet-app-content-icon {
width: 100px;
height: 100px;
background-image: url('./public/ic-appstore-deriv-logo.svg');
Expand Down
16 changes: 8 additions & 8 deletions packages/wallets/src/components/WalletList/WalletList.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.account-list {
.wallet-list-account-list {
display: flex;
flex-direction: column;
gap: 20px;
Expand All @@ -7,14 +7,14 @@
padding-top: 2rem;
}

h1,
.currency,
.balance,
.account-category {
.wallet-list-title,
.wallet-list-currency,
.wallet-list-balance,
.wallet-list-account-category {
font-size: 3rem;
}

.account-item {
.wallet-list-account-item {
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
Expand All @@ -25,10 +25,10 @@ h1,
width: 90%;
}

.currency {
.wallet-list-currency {
font-weight: bold;
}

.account-category {
.wallet-list-account-category {
font-style: italic;
}
12 changes: 6 additions & 6 deletions packages/wallets/src/components/WalletList/WalletList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import './WalletList.scss';
const WalletList: React.FC = () => {
const { data } = useWalletAccountsList();

if (!data.length) return <h1>No wallets found</h1>;
if (!data.length) return <h1 className='wallet-list-title'>No wallets found</h1>;

return (
<div className='account-list'>
<div className='wallet-list-account-list'>
{data?.map(account => {
return (
<div className='account-item' key={account.loginid}>
<div className='currency'>{account.currency}</div>
<div className='wallet-list-account-item' key={account.loginid}>
<div className='wallet-list-currency'>{account.currency}</div>
<br />
<div className='account-category'>{account.landing_company_name}</div>
<div className='wallet-list-account-category'>{account.landing_company_name}</div>
<br />
<div className='balance'>{account.balance}</div>
<div className='wallet-list-balance'>{account.balance}</div>
</div>
);
})}
Expand Down

0 comments on commit 0bdd7dd

Please sign in to comment.