This commit is contained in:
Boki 2025-06-16 18:37:20 -04:00
parent 065d3943f6
commit e9ff913b7e
3 changed files with 11 additions and 8 deletions

View file

@ -1,4 +1,4 @@
import { DashboardStats, DashboardActivity, PortfolioTable } from './components';
import { DashboardActivity, DashboardStats, PortfolioTable } from './components';
export function DashboardPage() {
return (
@ -11,7 +11,7 @@ export function DashboardPage() {
<DashboardStats />
<DashboardActivity />
</div>
<div className="flex-1 min-h-0">
<PortfolioTable />
</div>

View file

@ -1,4 +1,9 @@
import { ArrowPathIcon, CheckCircleIcon, ExclamationTriangleIcon, XMarkIcon } from '@heroicons/react/24/outline';
import {
ArrowPathIcon,
CheckCircleIcon,
ExclamationTriangleIcon,
XMarkIcon,
} from '@heroicons/react/24/outline';
import { useEffect, useState } from 'react';
import { ExchangesTable } from './components/ExchangesTable';
import { useExchanges } from './hooks/useExchanges';
@ -24,7 +29,7 @@ export function ExchangesPage() {
const handleSync = async () => {
setSyncing(true);
setSyncStatus({ type: null, message: '' });
try {
const result = await syncExchanges();
if (result) {
@ -95,9 +100,7 @@ export function ExchangesPage() {
>
{syncStatus.type === 'success' ? 'Sync Completed' : 'Sync Failed'}
</p>
<p className="text-xs mt-1 text-text-secondary">
{syncStatus.message}
</p>
<p className="text-xs mt-1 text-text-secondary">{syncStatus.message}</p>
</div>
<button
onClick={() => setSyncStatus({ type: null, message: '' })}

View file

@ -190,7 +190,7 @@ export function ExchangesTable() {
{sources.map(source => {
// The source key is already in format "source_sourcecode" from the storage
const displayText = source.toUpperCase();
return (
<span
key={source}