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() { export function DashboardPage() {
return ( return (
@ -11,7 +11,7 @@ export function DashboardPage() {
<DashboardStats /> <DashboardStats />
<DashboardActivity /> <DashboardActivity />
</div> </div>
<div className="flex-1 min-h-0"> <div className="flex-1 min-h-0">
<PortfolioTable /> <PortfolioTable />
</div> </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 { useEffect, useState } from 'react';
import { ExchangesTable } from './components/ExchangesTable'; import { ExchangesTable } from './components/ExchangesTable';
import { useExchanges } from './hooks/useExchanges'; import { useExchanges } from './hooks/useExchanges';
@ -24,7 +29,7 @@ export function ExchangesPage() {
const handleSync = async () => { const handleSync = async () => {
setSyncing(true); setSyncing(true);
setSyncStatus({ type: null, message: '' }); setSyncStatus({ type: null, message: '' });
try { try {
const result = await syncExchanges(); const result = await syncExchanges();
if (result) { if (result) {
@ -95,9 +100,7 @@ export function ExchangesPage() {
> >
{syncStatus.type === 'success' ? 'Sync Completed' : 'Sync Failed'} {syncStatus.type === 'success' ? 'Sync Completed' : 'Sync Failed'}
</p> </p>
<p className="text-xs mt-1 text-text-secondary"> <p className="text-xs mt-1 text-text-secondary">{syncStatus.message}</p>
{syncStatus.message}
</p>
</div> </div>
<button <button
onClick={() => setSyncStatus({ type: null, message: '' })} onClick={() => setSyncStatus({ type: null, message: '' })}

View file

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