You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
447 B
19 lines
447 B
import { FundBar } from '../../widgets/FundBar' |
|
import { useStacks } from '../../hooks/getMany/useStacks' |
|
|
|
export const Dashboard = () => { |
|
const stacks = useStacks('') |
|
|
|
if (!stacks.data) return <div>loading...</div> |
|
|
|
return ( |
|
<> |
|
<h1>Remaining Balances</h1> |
|
<div className="funds"> |
|
{stacks.data.map((stack, i) => ( |
|
<FundBar key={stack.id} stack={stack} col={i + 1} /> |
|
))} |
|
</div> |
|
</> |
|
) |
|
}
|
|
|