Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>PIROIN</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/pages/OnboardingPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useEffect } from 'react';
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import styles from './OnboardingPage.module.css';
import logo from '../assets/images/logo.png';
Expand All @@ -7,6 +7,8 @@ function OnboardingPage() {
const navigate = useNavigate();

useEffect(() => {
document.title = "PIROIN";

const timer = setTimeout(() => {
const token = localStorage.getItem('token');
if (token) {
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/curriculum/CurriculumPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ function CurriculumPage() {
return acc;
}, {});

useEffect(() => {
document.title = "커리큘럼 | PIROIN";
}, []);

return (
<div className={styles.container}>
{role === 'ADMIN' && (
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/pages/login/LoginPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState } from 'react';
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { authFetch } from '../../utils/Api';
import styles from './LoginPage.module.css';
Expand Down Expand Up @@ -37,6 +37,10 @@ function LoginPage() {
}
};

useEffect(() => {
document.title = "로그인 | PIROIN";
}, []);

return (
<div className={styles.container}>
<h1 className={styles.title}>PIROIN</h1>
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/pages/pirocheck/PIroCheckMain.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useNavigate } from 'react-router-dom';
import styles from './PIroCheckMain.module.css';
import { useState, useEffect } from 'react';

function PIroCheckMain() {
const navigate = useNavigate();
Expand All @@ -19,6 +20,10 @@ function PIroCheckMain() {

const menus = role === 'ADMIN' ? adminMenus : memberMenus;

useEffect(() => {
document.title = "피로체크 | PIROIN";
}, []);

return (
<div className={styles.container}>
{menus.map((menu, i) => (
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/pages/qna/QnADetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function QnADetailPage() {

// ── 질문 불러오기 ────────────────────────────────
useEffect(() => {
document.title = "Q&A | PIROIN";

const fetchQuestion = async () => {
try {
setLoading(true);
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/pages/qna/QnAListPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ function QnAListPage() {

const currentChoice = myChoices[understanding?.current?.checkId];

useEffect(() => {
document.title = "Q&A | PIROIN";
}, []);

return (
<div className={styles.page}>
<h1 className={styles.title}>{sessionTitle}</h1>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/pages/qna/QnAMainPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function QNAMainPage() {

// ── 세션 목록 불러오기 ──────────────────────────
useEffect(() => {
document.title = "Q&A | PIROIN";

const fetchSessions = async () => {
try {
setLoading(true);
Expand Down
Loading