Files
trackgo-fe/apps/web/src/core/components/coming-soon-page.tsx
T
shancheas b0090bc15f feat: implement web URL constants and enhance navigation handling
- Introduced a centralized `WEB_URL` constant for managing application routes, improving maintainability and readability across components.
- Updated various components, including login, auth, and main app modules, to utilize the new `WEB_URL` constants for navigation, ensuring consistency in route management.
- Added a new `AppHomeRedirect` component to streamline user redirection based on privileges, enhancing user experience.
- Implemented client-side navigation functions to prevent full page reloads, improving performance and user interaction.
- Added tests for new functionalities, ensuring reliability in navigation and URL handling.

These changes significantly enhance the application's routing structure and navigation efficiency, providing a more cohesive user experience.
2026-09-02 11:17:51 +07:00

31 lines
950 B
TypeScript

import { StatusPage } from '@repo/ui/components';
import { useTranslation } from '@repo/core-i18n';
import { WEB_URL } from '../constants/web-url';
interface ComingSoonPageProps {
/** Use inside ModuleLayout so the page fits under the app chrome */
embedded?: boolean;
}
export function ComingSoonPage({ embedded = false }: ComingSoonPageProps) {
const { t } = useTranslation();
return (
<StatusPage
title={t('common:systemPages.comingSoon.title')}
heading={t('common:systemPages.comingSoon.heading')}
description={t('common:systemPages.comingSoon.description')}
showActionsBack={!embedded}
showActionsHome
homeUrl={WEB_URL.APP}
backButtonLabel={t('common:systemPages.actions.goBack')}
homeButtonLabel={t('common:systemPages.actions.backToHome')}
height={embedded ? 500 : undefined}
/>
);
}
export function EmbeddedComingSoonPage() {
return <ComingSoonPage embedded />;
}