Skip to content

Commit

Permalink
feat: change page title on each page
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDead committed Oct 6, 2024
1 parent 27683f1 commit d9120cf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/About/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const About = () => {

useEffect(() => {
d1(setPageIndex(5));
document.title = 'About | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down
1 change: 1 addition & 0 deletions src/routes/Advisor/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const Advisor = () => {

useEffect(() => {
d1(setPageIndex(2));
document.title = 'Advisor | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down
1 change: 1 addition & 0 deletions src/routes/Generate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const Generate = () => {

useEffect(() => {
d1(setPageIndex(1));
document.title = 'Password Generator | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down
1 change: 1 addition & 0 deletions src/routes/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ const Home = () => {

useEffect(() => {
d1(setPageIndex(0));
document.title = 'Home | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down
1 change: 1 addition & 0 deletions src/routes/NotFound/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const NotFound = () => {

useEffect(() => {
d1(setPageIndex(-1));
document.title = 'Not Found | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down
1 change: 1 addition & 0 deletions src/routes/Settings/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ const Settings = () => {

useEffect(() => {
d1(setPageIndex(4));
document.title = 'Settings | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down
1 change: 1 addition & 0 deletions src/routes/Vault/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ const Vault = () => {

useEffect(() => {
d1(setPageIndex(3));
document.title = 'Password Vault | Advanced PassGen';
if (allowCookies) {
ReactGA.send({
hitType: 'pageview',
Expand Down

0 comments on commit d9120cf

Please sign in to comment.