Skip to content

Commit

Permalink
Merge pull request #49 from hollow-leaf/feat/homepage_map_feature
Browse files Browse the repository at this point in the history
fix: rewrite maptable
  • Loading branch information
LinXJ1204 authored Aug 30, 2023
2 parents 44de718 + 0472a1e commit 1cfbf66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions apps/web/components/map_DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ function MapTable(props: any) {
const name_list = ["Taichung","","","",""]
const status_list: any = [];

provider_list.forEach(address=>{
console.log(address)

for(let i=0;i<provider_list.length;i++){
const { data, error, isLoading, isSuccess } = useContractRead({
address: "0x78E3930D2e258e5E88eC4a7f052ce8c7508d5B3B",
abi: inazuma_abi,
functionName: "provider_given_amount",
args: [address],
enabled: Boolean(address),
args: [provider_list[i]],
enabled: Boolean(provider_list[i]),
});
status_list.push({data:data, error:error, isLoading:isLoading, isSuccess:isSuccess})
})
}


return (
Expand Down
6 changes: 3 additions & 3 deletions apps/web/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ footer {
background: linear-gradient(90deg, rgba(131,228,255,1) 0%, rgba(87,183,149,1) 0%, rgba(230,247,112,1) 100%);}

.mx-4{
margin-right: 5%;
width: 37%
margin-right: 3%;
width: 50%
}

.mx-2{
margin-left: 5%;
margin-left: 3%;
}

.h-screen {
Expand Down

0 comments on commit 1cfbf66

Please sign in to comment.