login time
This commit is contained in:
@@ -19,7 +19,7 @@ export const useDocumentTitle = () => {
|
||||
} else if (path.includes("/settings")) {
|
||||
return "Settings";
|
||||
} else {
|
||||
return "Project Athena";
|
||||
return "Bird Eye View";
|
||||
}
|
||||
};
|
||||
|
||||
@@ -27,7 +27,14 @@ export const useDocumentTitle = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (Platform.OS === "web") {
|
||||
document.title = `${currentSection} | Project Athena`;
|
||||
const isAuthRoute =
|
||||
pathname.includes("/(auth)/") ||
|
||||
pathname.includes("/sign-in") ||
|
||||
pathname.includes("/forgot-password") ||
|
||||
pathname.includes("/reset-password");
|
||||
document.title = isAuthRoute
|
||||
? "Bird Eye View"
|
||||
: `Bird Eye View | ${currentSection}`;
|
||||
}
|
||||
}, [currentSection, pathname]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user