Skip to content

Add CAP icon to staking modals#179

Open
rebel117 wants to merge 1 commit into
capofficial:mainfrom
rebel117:fix-25-staking-icon
Open

Add CAP icon to staking modals#179
rebel117 wants to merge 1 commit into
capofficial:mainfrom
rebel117:fix-25-staking-icon

Conversation

@rebel117
Copy link
Copy Markdown

Summary

Closes #25

The staking page's Stake and Unstake modals were missing the CAP logo icon in their headers, which was inconsistent with how the pool page displays asset icons next to asset names.

What changed

  • Added an optional icon prop to Modal.svelte that renders an <img> tag next to the modal title
  • Updated StakeCAP.svelte modal to pass icon='/asset-logos/CAP.svg'
  • Updated UnstakeCAP.svelte modal to pass icon='/asset-logos/CAP.svg'

How to test

  1. Navigate to the Stake page
  2. Click 'Stake' — the modal header should show the CAP icon next to 'Stake CAP'
  3. Click 'Unstake' — the modal header should show the CAP icon next to 'Unstake CAP'
  4. Verify other modals (Pool Deposit, Pool Withdraw) still render correctly without icons

The pool page shows asset icons consistently but the staking
modals (Stake/Unstake CAP) were missing the CAP icon in their
header. This adds an optional icon prop to the Modal component
and passes the CAP logo to both staking modals so the branding
stays consistent across the app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CAP icon on staking page

1 participant