Skip to content

Commit d1c9f9f

Browse files
authored
Merge pull request #28 from opexdev/develop
Fix total-user-wallets style
2 parents 2264bd8 + 9c8231f commit d1c9f9f

File tree

11 files changed

+14
-29
lines changed

11 files changed

+14
-29
lines changed

.github/workflows/dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
- name: Build Docker images
1818
env:
1919
GENERATE_SOURCEMAP: ''
20-
run: docker-compose -f docker-compose.build.yml build
20+
run: docker compose -f docker-compose.build.yml build
2121
- name: Login to GitHub Container Registry
2222
uses: docker/login-action@v1
2323
with:
2424
registry: ghcr.io
2525
username: ${{ github.actor }}
2626
password: ${{ secrets.GITHUB_TOKEN }}
2727
- name: Push images to GitHub Container Registry
28-
run: docker-compose -f docker-compose.build.yml push
28+
run: docker compose -f docker-compose.build.yml push

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
- name: Build Docker images
1818
env:
1919
GENERATE_SOURCEMAP: false
20-
run: docker-compose -f docker-compose.build.yml build
20+
run: docker compose -f docker-compose.build.yml build
2121
- name: Login to GitHub Container Registry
2222
uses: docker/login-action@v1
2323
with:
2424
registry: ghcr.io
2525
username: ${{ github.actor }}
2626
password: ${{ secrets.GITHUB_TOKEN }}
2727
- name: Push images to GitHub Container Registry
28-
run: docker-compose -f docker-compose.build.yml push
28+
run: docker compose -f docker-compose.build.yml push

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
env:
1616
TAG: latest
1717
GENERATE_SOURCEMAP: false
18-
run: docker-compose -f docker-compose.build.yml build
18+
run: docker compose -f docker-compose.build.yml build

src/pages/ChainAndToken/Chains/ChainBalance.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import {BN} from "../../../utils/utils";
88

99
const ChainBalance = ({chainId}) => {
1010

11-
console.log("chainId in chainbalance", chainId)
12-
1311
const [params, setParams] = useState({
1412
"excludeZero": false,
1513
});
@@ -22,9 +20,6 @@ const ChainBalance = ({chainId}) => {
2220
refetch()
2321
}, [params]);
2422

25-
26-
console.log("data ChainBalance", data)
27-
2823
const content = ()=> {
2924

3025
if (isLoading) return <div className={`d-flex flex-column justify-content-center align-items-center col-12 mt-4 py-5 ${classes.box}`}>
@@ -49,8 +44,8 @@ const ChainBalance = ({chainId}) => {
4944

5045
<>
5146

52-
<div className={`col-12 my-2 d-flex flex-row justify-content-between col-12 mt-4 py-4 px-4 ${classes.box}`}>
53-
<div className={`d-flex flex-row col-5`}>
47+
<div className={`col-12 my-2 d-flex flex-row justify-content-between align-items-center col-12 mt-4 py-4 px-4 ${classes.box} font-size-sm`}>
48+
<div className={`d-flex flex-row align-items-center col-5`}>
5449
<span className={``}>Exclude Zero Balance</span>
5550
<span className={`mx-2`}> </span>
5651
<ToggleSwitch
@@ -72,7 +67,7 @@ const ChainBalance = ({chainId}) => {
7267
checked={params?.excludeZero}/>
7368
</div>
7469

75-
<div className={`d-flex flex-row justify-content-center col-7 text-center`}>
70+
<div className={`d-flex flex-row justify-content-center align-items-center col-7 text-center`}>
7671
<span className={``}>{total?.chain?.toUpperCase()}</span>
7772
<span className={`mx-1`}> </span>
7873
<span className={``}>Total Balance: </span>

src/pages/ChainAndToken/Chains/Chains.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const Chains = () => {
2323
if (error) return <span>Error</span>
2424
if (isLoading) return <span>Loading...</span>
2525
else return <>
26-
<div className={`d-flex flex-row `}>
26+
<div className={`d-flex flex-row font-size-sm`}>
2727
{data?.map((chain, index) => <span key={index} className={`${classes.chainTitle} ${chain?.id === chainId && classes.activeChain}`} onClick={()=>setChainId(chain?.id)}>{chain?.name}</span>)}
2828

2929
</div>

src/pages/ChainAndToken/Tokens/Tokens.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Tokens = () => {
2020
if (error) return <span>Error</span>
2121
if (isLoading) return <span>Loading...</span>
2222
else return <>
23-
<div className={`d-flex flex-row `}>
23+
<div className={`d-flex flex-row font-size-sm`}>
2424
{data?.map((chain, index) => <span key={index} className={`${classes.chainTitle} ${chain?.id === chainId && classes.activeChain}`} onClick={()=>setChainId(chain?.id)}>{chain?.name}</span>)}
2525

2626
</div>

src/pages/ChainAndToken/Tokens/TokensBalance.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const TokensBalance = ({chainId}) => {
4444
return (
4545
<>
4646

47-
<div className={`col-12 my-2 d-flex flex-row justify-content-between col-12 mt-4 py-4 px-4 ${classes.box}`}>
48-
<div className={`d-flex flex-row col-5`}>
47+
<div className={`col-12 my-2 d-flex flex-row justify-content-between align-items-center col-12 mt-4 py-4 px-4 ${classes.box} font-size-sm`}>
48+
<div className={`d-flex flex-row align-items-center col-5`}>
4949
<span className={``}>Exclude Zero Balance</span>
5050
<span className={`mx-2`}> </span>
5151
<ToggleSwitch
@@ -67,7 +67,7 @@ const TokensBalance = ({chainId}) => {
6767
checked={params?.excludeZero}/>
6868
</div>
6969

70-
<div className={`d-flex flex-row justify-content-center col-7 text-center`}>
70+
<div className={`d-flex flex-row justify-content-center align-items-center col-7 text-center`}>
7171
<span className={``}>{total?.chain?.toUpperCase()}</span>
7272
<span className={`mx-1`}> </span>
7373
<span className={``}>Total Balance: </span>

src/pages/Dashboard/BriefWallet/BriefWalletCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {BN} from "../../../utils/utils";
44

55
const BriefWalletCard = ({data, index}) => {
66
return (
7-
<div key={index} className={`d-flex flex-row justify-content-between align-items-center py-3 px-4`}>
7+
<div key={index} className={`d-flex flex-row justify-content-between align-items-center py-3 px-4 font-size-sm`}>
88
<span className={`col-4`}>{data?.currency}</span>
99
<span className={`col-8`}>{new BN(data?.balance).toFormat()}</span>
1010
</div>

src/pages/Dashboard/Chain/Chain.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ const Chain = () => {
88

99
const {data, isLoading, error} = useGetTotalBalance();
1010

11-
12-
console.log("data,", data )
13-
14-
1511
const content = () => {
1612
if (error) return <span>Error</span>
1713
if (isLoading) return <span>Loading...</span>

src/pages/Dashboard/Chain/ChainCard.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import {BN} from "../../../utils/utils";
44

55
const ChainCard = ({data, index}) => {
66

7-
console.log("data in", data)
8-
97
return (
108
<div key={index} className={`d-flex flex-row justify-content-between align-items-center py-3 px-4 font-size-sm`}>
119
<span className={`col-4`}>{data?.chain}</span>

0 commit comments

Comments
 (0)