Skip to content
Merged
10 changes: 10 additions & 0 deletions src/components/common/DividendPoolSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useState, useEffect } from 'react';
import { Coins, Clock, CheckCircle, Loader2, ArrowDown } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { formatNumber } from '@/utils/numberFormat.utils';
import HolderSnapshotHistory from '@/components/common/HolderSnapshotHistory';

interface DividendDistribution {
id: string;
Expand Down Expand Up @@ -162,6 +163,15 @@ export default function DividendPoolSection({
)}
</div>

<details className='mt-4 border-t border-white/5 pt-3'>
<summary className='cursor-pointer text-xs font-semibold text-white/50'>
Holder snapshot history
</summary>
<div className='mt-4'>
<HolderSnapshotHistory keyId={dividend.keyId} chartHeight={180} />
</div>
</details>

{/* Distribution History */}
{dividend.distributions.length > 0 && (
<div className="mt-3 pt-3 border-t border-white/5">
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/DiscoveryFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function DiscoveryFeed() {

// Create filter query params for marketplace links
const sortParam = (sort: string) =>
sort === 'volume_desc' ? '/marketplace' : `/marketplace?sort=${sort}`;
`/marketplace?sort=${sort}`;

return (
<section className="space-y-8 px-6 py-16 md:px-12">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/StakingDashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ function StakingDashboardContent() {
accent="amber"
/>
<SummaryStat
label="Total claimable rewards"
label="Epoch rewards available"
value={`${(totalClaimableStroops / STROOPS_PER_XLM).toFixed(4)} XLM`}
icon={Coins}
accent="emerald"
Expand Down
10 changes: 10 additions & 0 deletions src/pages/__tests__/MarketingPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ describe('MarketingPage community links', () => {
expect(telegramLink).toHaveAttribute('rel', 'noopener noreferrer');
});
});

it('keeps both community links external in the same render', () => {
render(<MarketingPage />);

for (const name of [/github/i, /telegram/i]) {
const link = screen.getByRole('link', { name });
expect(link).toHaveAttribute('target', '_blank');
expect(link).toHaveAttribute('rel', 'noopener noreferrer');
}
});
Loading