From 41fcaaaf05c5c8ca04384334ab1fb5f7e98b897f Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Sun, 15 Jun 2025 21:28:17 +0800 Subject: [PATCH] Fix: Public status page loading state --- .../public/PublicStatusPageFooter.tsx | 85 ++++++++++++++++--- 1 file changed, 74 insertions(+), 11 deletions(-) diff --git a/application/src/components/public/PublicStatusPageFooter.tsx b/application/src/components/public/PublicStatusPageFooter.tsx index 41efd3f..785bb8a 100644 --- a/application/src/components/public/PublicStatusPageFooter.tsx +++ b/application/src/components/public/PublicStatusPageFooter.tsx @@ -1,23 +1,86 @@ -import { Globe } from 'lucide-react'; import { OperationalPageRecord } from '@/types/operational.types'; +import { format } from 'date-fns'; +import { Clock, Shield, Zap, RefreshCw } from 'lucide-react'; +import { Button } from '@/components/ui/button'; interface PublicStatusPageFooterProps { page: OperationalPageRecord; } export const PublicStatusPageFooter = ({ page }: PublicStatusPageFooterProps) => { + const handleRefresh = () => { + window.location.reload(); + }; + return ( -
-
- - {page.custom_domain ? ( - Status page hosted at {page.custom_domain} - ) : ( - Status page - )} +
+ ); }; \ No newline at end of file