disable ssr & dark mode & bar

This commit is contained in:
lyc8503 committed 2023-10-23 00:54:26 +08:00
1 parent 59c9ebf82b
commit 1d431a649f
5 files changed
+24 -10

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ export default function OverallStatus({ state }: { state: { overallUp: number, o
{icon}
</Center>
<Title mt="sm" style={{ textAlign: 'center' }} order={1}>{statusString}</Title>
<Title mt="sm" style={{ textAlign: 'center', color: '#70778c' }} order={5}>Last updated on: {new Date(state.lastUpdate * 1000).toLocaleString()} ({Math.round(Date.now() / 1000) - state.lastUpdate} sec ago)</Title>
<Title mt="sm" style={{ textAlign: 'center', color: '#70778c' }} order={5}>Last updated on: {`${new Date(state.lastUpdate * 1000).toLocaleString()} (${Math.round(Date.now() / 1000) - state.lastUpdate} sec ago)`}</Title>
</>)
}