Skip to content

Commit c96b284

Browse files
committed
Refactor SystemStatusPage: remove fallback values for localization strings to ensure accurate rendering of titles and descriptions.
1 parent 6154f84 commit c96b284

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

platform/pages/system-status/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,33 +71,31 @@ const SystemStatusPage: NextPage = () => {
7171

7272
return (
7373
<MainLayout
74-
title={ss?.meta?.title || 'System Status - CrownCode'}
75-
description={ss?.meta?.description || 'Live status of CrownCode services.'}
76-
keywords={ss?.meta?.keywords || 'system status, health, uptime'}
74+
title={ss.meta.title}
75+
description={ss.meta.description}
76+
keywords={ss.meta.keywords}
7777
>
7878
<div className={styles['page-container']}>
7979
<motion.div initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }}>
8080
<div className={styles['header-row']}>
8181
<Activity size={28} className={styles['header-icon']} />
8282
<h1 className={styles['title']}>
83-
{ss?.title || 'System Status'}
83+
{ss.title}
8484
</h1>
8585
</div>
8686

8787
<div className={styles['status-bar']}>
8888
<span className={`${styles['status-dot']} ${allOk ? styles['status-dot-ok'] : styles['status-dot-error']}`} />
8989
<span className={styles['status-text']}>
90-
{allOk
91-
? (ss?.allOperational || 'All systems operational')
92-
: (ss?.someIssues || 'Some services have issues')}
90+
{allOk ? ss.allOperational : ss.someIssues}
9391
</span>
9492
<button
9593
onClick={checkServices}
9694
disabled={checking}
9795
className={styles['refresh-btn']}
9896
>
9997
<RefreshCw size={14} className={checking ? 'animate-spin' : ''} />
100-
{ss?.refresh || 'Refresh'}
98+
{ss.refresh}
10199
</button>
102100
</div>
103101
</motion.div>

0 commit comments

Comments
 (0)