- Update `src/index.tsx` to use a unified `ics.convertTimestampToArray` helper instead of manually parsing formatted strings. This ensures consistent timestamp handling across different environments. - Remove the custom `HydrateFallback` and `Layout` components from `src/routes.tsx`. - Import the existing `HydrateFallback` and `Layout` implementations from their respective component files (`./components/HydrateFallback` and `./components/Layout/BaseLayout`) to reduce code duplication and improve maintainability.
10 lines
158 B
TypeScript
10 lines
158 B
TypeScript
import { Spin } from "antd";
|
|
|
|
export function HydrateFallback() {
|
|
return (
|
|
<Spin spinning>
|
|
<div style={{ height: '100vh' }} />
|
|
</Spin>
|
|
);
|
|
}
|