Skip to content

Commit d9120cf

Browse files
committed
feat: change page title on each page
1 parent 27683f1 commit d9120cf

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

src/routes/About/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const About = () => {
3131

3232
useEffect(() => {
3333
d1(setPageIndex(5));
34+
document.title = 'About | Advanced PassGen';
3435
if (allowCookies) {
3536
ReactGA.send({
3637
hitType: 'pageview',

src/routes/Advisor/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const Advisor = () => {
3232

3333
useEffect(() => {
3434
d1(setPageIndex(2));
35+
document.title = 'Advisor | Advanced PassGen';
3536
if (allowCookies) {
3637
ReactGA.send({
3738
hitType: 'pageview',

src/routes/Generate/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ const Generate = () => {
218218

219219
useEffect(() => {
220220
d1(setPageIndex(1));
221+
document.title = 'Password Generator | Advanced PassGen';
221222
if (allowCookies) {
222223
ReactGA.send({
223224
hitType: 'pageview',

src/routes/Home/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ const Home = () => {
172172

173173
useEffect(() => {
174174
d1(setPageIndex(0));
175+
document.title = 'Home | Advanced PassGen';
175176
if (allowCookies) {
176177
ReactGA.send({
177178
hitType: 'pageview',

src/routes/NotFound/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const NotFound = () => {
1616

1717
useEffect(() => {
1818
d1(setPageIndex(-1));
19+
document.title = 'Not Found | Advanced PassGen';
1920
if (allowCookies) {
2021
ReactGA.send({
2122
hitType: 'pageview',

src/routes/Settings/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const Settings = () => {
140140

141141
useEffect(() => {
142142
d1(setPageIndex(4));
143+
document.title = 'Settings | Advanced PassGen';
143144
if (allowCookies) {
144145
ReactGA.send({
145146
hitType: 'pageview',

src/routes/Vault/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ const Vault = () => {
292292

293293
useEffect(() => {
294294
d1(setPageIndex(3));
295+
document.title = 'Password Vault | Advanced PassGen';
295296
if (allowCookies) {
296297
ReactGA.send({
297298
hitType: 'pageview',

0 commit comments

Comments
 (0)