Merge branch 'clone' into 'main'
Draft: Clone See merge request witapp/aura-webapp!3
This commit is contained in:
commit
06e3fda50a
@ -128,8 +128,15 @@ export const withCrossButtonRoutes = [
|
|||||||
routes.client.subscription(),
|
routes.client.subscription(),
|
||||||
routes.client.paymentMethod(),
|
routes.client.paymentMethod(),
|
||||||
];
|
];
|
||||||
export const hasCrossButton = (path: string) =>
|
/**
|
||||||
withCrossButtonRoutes.includes(path);
|
* Checks if a given path has a cross button.
|
||||||
|
* @param {string} path - The path to check.
|
||||||
|
* @returns {boolean} - True if the path has a cross button, false otherwise.
|
||||||
|
*/
|
||||||
|
export const hasCrossButton = (path: string): boolean => {
|
||||||
|
// Check if the path is included in the array of routes with cross buttons
|
||||||
|
return withCrossButtonRoutes.includes(path);
|
||||||
|
};
|
||||||
|
|
||||||
export const withoutFooterRoutes = [
|
export const withoutFooterRoutes = [
|
||||||
routes.client.didYouKnow(),
|
routes.client.didYouKnow(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user