diff --git a/packages/ui/src/components/system-pages/coming-soon.tsx b/packages/ui/src/components/system-pages/coming-soon.tsx index c31296d..7ec9d63 100644 --- a/packages/ui/src/components/system-pages/coming-soon.tsx +++ b/packages/ui/src/components/system-pages/coming-soon.tsx @@ -1,4 +1,10 @@ -export function ComingSoon() { +interface ComingSoonProps { + showActions?: boolean; +} + +export function ComingSoon(props: ComingSoonProps) { + const { showActions = false } = props; + return (
@@ -6,7 +12,7 @@ export function ComingSoon() {

Coming Soon

{/* Title */} -

Feature in Progress

+

Feature in Progress

{/* Description */}

@@ -14,11 +20,16 @@ export function ComingSoon() {

{/* Actions */} -
- - Back to Home - -
+ {showActions && ( +
+ + Back to Home + +
+ )}
); diff --git a/packages/ui/src/components/system-pages/forbidden.tsx b/packages/ui/src/components/system-pages/forbidden.tsx index b49888a..f9c518d 100644 --- a/packages/ui/src/components/system-pages/forbidden.tsx +++ b/packages/ui/src/components/system-pages/forbidden.tsx @@ -1,4 +1,11 @@ -export function Forbidden() { +interface ForbiddenProps { + showActionsBack?: boolean; + showActionsHome?: boolean; +} + +export function Forbidden(props: ForbiddenProps) { + const { showActionsBack = true, showActionsHome = true } = props; + return (
@@ -6,7 +13,7 @@ export function Forbidden() {

403 Error

{/* Title */} -

Access Denied

+

Access Denied

{/* Description */}

@@ -15,18 +22,27 @@ export function Forbidden() {

{/* Actions */} -
- + {(showActionsBack || showActionsHome) && ( +
+ {showActionsBack && ( + + )} - - Back to Home - -
+ {showActionsHome && ( + + Back to Home + + )} +
+ )}
); diff --git a/packages/ui/src/components/system-pages/maintenance.tsx b/packages/ui/src/components/system-pages/maintenance.tsx index da861b2..7643be2 100644 --- a/packages/ui/src/components/system-pages/maintenance.tsx +++ b/packages/ui/src/components/system-pages/maintenance.tsx @@ -1,4 +1,10 @@ -export function Maintenance() { +interface MaintenanceProps { + showActions?: boolean; +} + +export function Maintenance(props: MaintenanceProps) { + const { showActions = false } = props; + return (
@@ -6,7 +12,7 @@ export function Maintenance() {

Maintenance

{/* Title */} -

We'll Be Back Soon

+

We'll Be Back Soon

{/* Description */}

@@ -15,11 +21,16 @@ export function Maintenance() {

{/* Optional Actions */} -
- - Back to Home - -
+ {showActions && ( +
+ + Back to Home + +
+ )}
); diff --git a/packages/ui/src/components/system-pages/not-found.tsx b/packages/ui/src/components/system-pages/not-found.tsx index 8746e19..ffb8efc 100644 --- a/packages/ui/src/components/system-pages/not-found.tsx +++ b/packages/ui/src/components/system-pages/not-found.tsx @@ -1,27 +1,43 @@ -export function NotFound() { +interface NotFoundProps { + showActionsBack?: boolean; + showActionsHome?: boolean; +} + +export function NotFound(props: NotFoundProps) { + const { showActionsBack = true, showActionsHome = true } = props; + return (

404 Error

-

Page Not Found

+

Page Not Found

Sorry, the page you’re looking for doesn’t exist or has been moved.

-
- + {(showActionsBack || showActionsHome) && ( +
+ {showActionsBack && ( + + )} - - Back to Home - -
+ {showActionsHome && ( + + Back to Home + + )} +
+ )}
);