Draft: Clone
This commit is contained in:
parent
2898fe7960
commit
2b1b29566d
@ -128,8 +128,15 @@ export const withCrossButtonRoutes = [
|
||||
routes.client.subscription(),
|
||||
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 = [
|
||||
routes.client.didYouKnow(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user