Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(tangle-dapp): Update liquid staking overview page UI #2513

Merged
merged 8 commits into from
Aug 29, 2024

Conversation

devpavan04
Copy link
Member

@devpavan04 devpavan04 commented Aug 15, 2024

Summary of changes

  • Added a new reusable component: VaultsTable (includes AssetsTable within).
  • Updated the overview page UI to align with the latest design updates.

Proposed area of change

  • apps/bridge-dapp
  • apps/hubble-stats
  • apps/stats-dapp
  • apps/tangle-dapp
  • apps/testnet-leaderboard
  • apps/faucet
  • apps/zk-explorer
  • libs/webb-ui-components

Reference issue to close (if applicable)

Screen Recording

CleanShot.2024-08-27.at.10.02.57.mp4

Screenshots

CleanShot 2024-08-27 at 10 01 59

@devpavan04 devpavan04 added the tangle-dapp Tangle Staking dApp label Aug 15, 2024
@devpavan04 devpavan04 self-assigned this Aug 15, 2024
Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for tangle-dapp ready!

Name Link
🔨 Latest commit 1c99bb5
🔍 Latest deploy log https://app.netlify.com/sites/tangle-dapp/deploys/66cf3a1d3535b60008771a90
😎 Deploy Preview https://deploy-preview-2513--tangle-dapp.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@devpavan04 devpavan04 marked this pull request as ready for review August 27, 2024 17:12
@devpavan04
Copy link
Member Author

@AtelyPham, I have created a reusable table component called VaultsTable.

Check out the usage in apps/tangle-dapp/components/LiquidStaking/VaultsAndAssetsTable.tsx.

You need to pass the following props:

  • Vault columns
  • Asset columns
  • Vault data (each data item should have its own assets array)
const VaultsAndAssetsTable = () => {
  const vaults = useVaults();

  return (
    <VaultsTable
      vaultsData={vaults}
      vaultsColumns={vaultColumns}
      assetsColumns={assetsColumns}
      title="Liquid Staking Vaults"
      initialSorting={[{ id: 'apy', desc: true }]}
    />
  );
};

Copy link
Contributor

@drewstone drewstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG!

@drewstone drewstone merged commit 6a0f28e into develop Aug 29, 2024
12 checks passed
@drewstone drewstone deleted the PS/overview-page-ui branch August 29, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tangle-dapp Tangle Staking dApp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK] Update the overview page UI to match the latest design updates
2 participants