fix: JSX structure in credit.tsx
Some checks failed
build-and-release / build (push) Failing after 1m10s
Some checks failed
build-and-release / build (push) Failing after 1m10s
- Fix nested tag structure: AI Credits tab was incorrectly nested inside Platform Ledger section - Close Platform Ledger section before starting AI Credits tab - Move AI Credits tab to be a sibling of Platform Ledger tab, not a child - Wrap AI Credits content in proper section element for consistent styling
This commit is contained in:
parent
059c7569c4
commit
578fb2c5a1
1 changed files with 9 additions and 5 deletions
|
|
@ -620,10 +620,13 @@ export default function CreditPage() {
|
||||||
>
|
>
|
||||||
<LedgerSection entries={platformLedger() ?? []} showUser onExport={undefined} />
|
<LedgerSection entries={platformLedger() ?? []} showUser onExport={undefined} />
|
||||||
</Show>
|
</Show>
|
||||||
|
</section>
|
||||||
|
</Show>
|
||||||
|
|
||||||
{/* AI Credits Tab */}
|
{/* AI Credits Tab */}
|
||||||
<Show when={activeTab() === 'ai_credits'}>
|
<Show when={activeTab() === 'ai_credits'}>
|
||||||
<div>
|
<section class="rounded-xl border border-gray-200 bg-white shadow-sm" style="margin-top:1.5rem">
|
||||||
|
<div>
|
||||||
{/* AI Credits Sub-tabs */}
|
{/* AI Credits Sub-tabs */}
|
||||||
<div class="bg-white border-b border-gray-200 px-0 flex items-center gap-6 mb-6">
|
<div class="bg-white border-b border-gray-200 px-0 flex items-center gap-6 mb-6">
|
||||||
{(['balance', 'adjust', 'reconcile'] as const).map((t) => (
|
{(['balance', 'adjust', 'reconcile'] as const).map((t) => (
|
||||||
|
|
@ -921,8 +924,9 @@ export default function CreditPage() {
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</section>
|
||||||
</div>
|
</Show>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue