major fixes

This commit is contained in:
Your Name
2026-05-14 16:58:06 +00:00
parent ad84c38641
commit 36e71ead7b
4 changed files with 20 additions and 123 deletions
+2 -2
View File
@@ -6,11 +6,11 @@ const nextConfig = {
return [
{
source: '/api/:path*',
destination: 'http://localhost:3002/api/:path*',
destination: 'http://backend:3002/api/:path*',
},
{
source: '/webhooks/:path*',
destination: 'http://localhost:3002/webhooks/:path*',
destination: 'http://backend:3002/webhooks/:path*',
},
];
},
+5 -2
View File
@@ -48,6 +48,7 @@ export default function DashboardPage() {
const [isLoading, setIsLoading] = useState(true);
const [isSearchModalOpen, setIsSearchModalOpen] = useState(false);
const [isBuyModalOpen, setIsBuyModalOpen] = useState(false);
const [refreshCount, setRefreshCount] = useState(0);
useEffect(() => {
if (!isAuthenticated) {
@@ -100,7 +101,9 @@ export default function DashboardPage() {
const handleRefresh = () => {
loadWalletAndPending();
loadCosts();
syncPending();
setRefreshCount((c) => c + 1);
};
if (isLoading)
@@ -277,7 +280,7 @@ export default function DashboardPage() {
</TabsTrigger>
</TabsList>
<TabsContent value="history" className="p-6 space-y-4">
<WatchHistory />
<WatchHistory key={refreshCount} />
</TabsContent>
<TabsContent value="requests" className="p-6 space-y-4">
<RequestHistory />
@@ -297,7 +300,7 @@ export default function DashboardPage() {
</h3>
</div>
<div className="max-h-[500px] overflow-y-auto pr-2 scrollbar-hide">
<ActivityFeed />
<ActivityFeed key={refreshCount} />
</div>
</div>