mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 11:43:48 +01:00
Update page title
This commit is contained in:
parent
7cb4a93387
commit
ff639aab4f
@ -32,6 +32,7 @@ ReactGA.initialize([
|
||||
}
|
||||
]);
|
||||
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
|
@ -23,7 +23,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
||||
const client: Client = useSelector(activeInstance);
|
||||
|
||||
useEffect(() => {
|
||||
ReactGA.send({ hitType: "pageview", page: window.location.pathname});
|
||||
ReactGA.send({ hitType: 'pageview', page: window.location.pathname, title: `Editor - ${mapId}` });
|
||||
}, []);
|
||||
|
||||
const findEditorMode = (isTryMode: boolean, mapId: number): EditorRenderMode | null => {
|
||||
|
@ -80,8 +80,8 @@ const ForgotPasswordPage = (): React.ReactElement => {
|
||||
const intl = useIntl();
|
||||
useEffect(() => {
|
||||
document.title = intl.formatMessage({ id: 'forgot.page-title', defaultMessage: 'Forgot Password | WiseMapping' });
|
||||
ReactGA.send({ hitType: "pageview", page: window.location.pathname});
|
||||
},[]);
|
||||
ReactGA.send({ hitType: 'pageview', page: window.location.pathname, title: 'Forgot password' });
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
@ -69,9 +69,9 @@ const LoginPage = (): React.ReactElement => {
|
||||
const intl = useIntl();
|
||||
|
||||
useEffect(() => {
|
||||
document.title = intl.formatMessage({id:'login.page-title',defaultMessage:'Login | WiseMapping'});
|
||||
ReactGA.send({ hitType: "pageview", page: window.location.pathname});
|
||||
},[]);
|
||||
document.title = intl.formatMessage({ id: 'login.page-title', defaultMessage: 'Login | WiseMapping' });
|
||||
ReactGA.send({ hitType: 'pageview', page: window.location.pathname, title: 'Login' });
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
@ -90,7 +90,7 @@ const LoginPage = (): React.ReactElement => {
|
||||
|
||||
<FormControl>
|
||||
<form action="/c/perform-login" method="POST">
|
||||
<input type='hidden' value={getCsrfToken()} name={getCsrfTokenParameter()}/>
|
||||
<input type='hidden' value={getCsrfToken()} name={getCsrfTokenParameter()} />
|
||||
<Input
|
||||
name="username"
|
||||
type="email"
|
||||
|
@ -83,7 +83,7 @@ const MapsPage = (): ReactElement => {
|
||||
id: 'maps.page-title',
|
||||
defaultMessage: 'My Maps | WiseMapping',
|
||||
});
|
||||
ReactGA.send({ hitType: "pageview", page: window.location.pathname});
|
||||
ReactGA.send({ hitType: 'pageview', page: window.location.pathname, title: 'Maps list' });
|
||||
}, []);
|
||||
|
||||
const mutation = useMutation((id: number) => client.deleteLabel(id), {
|
||||
@ -287,20 +287,20 @@ interface ListItemProps {
|
||||
// https://stackoverflow.com/questions/61486061/how-to-set-selected-and-hover-color-of-listitem-in-mui
|
||||
const CustomListItem = withStyles({
|
||||
root: {
|
||||
"&$selected": {
|
||||
backgroundColor: "rgb(210, 140, 5)",
|
||||
color: "white",
|
||||
"& .MuiListItemIcon-root": {
|
||||
color: "white"
|
||||
}
|
||||
},
|
||||
"&$selected:hover": {
|
||||
backgroundColor: "rgb(210, 140, 5)",
|
||||
color: "white",
|
||||
"& .MuiListItemIcon-root": {
|
||||
color: "white"
|
||||
}
|
||||
},
|
||||
"&$selected": {
|
||||
backgroundColor: "rgb(210, 140, 5)",
|
||||
color: "white",
|
||||
"& .MuiListItemIcon-root": {
|
||||
color: "white"
|
||||
}
|
||||
},
|
||||
"&$selected:hover": {
|
||||
backgroundColor: "rgb(210, 140, 5)",
|
||||
color: "white",
|
||||
"& .MuiListItemIcon-root": {
|
||||
color: "white"
|
||||
}
|
||||
},
|
||||
},
|
||||
selected: {}
|
||||
})(ListItemButton);
|
||||
|
@ -165,8 +165,8 @@ const RegistationPage = (): React.ReactElement => {
|
||||
id: 'registration.page-title',
|
||||
defaultMessage: 'Registration | WiseMapping',
|
||||
});
|
||||
ReactGA.send({ hitType: "pageview", page: window.location.pathname});
|
||||
},[]);
|
||||
ReactGA.send({ hitType: 'pageview', page: window.location.pathname, title: 'Register' });
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
Loading…
Reference in New Issue
Block a user