chore: Hide banners on onboarding view (#8934)

---------
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
This commit is contained in:
Nithin David Thomas
2024-02-20 16:12:51 -08:00
committed by GitHub
parent 19aef3e94b
commit 9911c5dc12
3 changed files with 38 additions and 3 deletions

View File

@@ -48,3 +48,13 @@ export const validateRouteAccess = (to, next, chatwootConfig = {}) => {
next();
};
export const isOnOnboardingView = route => {
const { name = '' } = route || {};
if (!name) {
return false;
}
return name.includes('onboarding_');
};