diff --git a/src/App.tsx b/src/App.tsx
index ad3f62e..51812e4 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -50,7 +50,7 @@ function App() {
} />
} />
} />
- } />
+ } />
} />
diff --git a/src/pages/FriendCharacterDashboard.tsx b/src/pages/FriendCharacterDashboard.tsx
index 5ea22ec..61b414a 100644
--- a/src/pages/FriendCharacterDashboard.tsx
+++ b/src/pages/FriendCharacterDashboard.tsx
@@ -27,7 +27,7 @@ interface Homework {
}
export default function FriendCharacterDashboard() {
- const { friendId } = useParams()
+ const { friend_id } = useParams()
const [characters, setCharacters] = useState([])
const [homeworks, setHomeworks] = useState>({})
const navigate = useNavigate()
@@ -35,13 +35,13 @@ export default function FriendCharacterDashboard() {
useEffect(() => {
const fetchData = async () => {
try {
- const res = await api.get(`/friends/${friendId}/characters`)
+ const res = await api.get(`/friends/${friend_id}/characters`)
setCharacters(res.data)
const hwResults = await Promise.all(
res.data.map((char: Character) =>
api
- .get(`/friends/${friendId}/characters/${char.character_id}/homeworks`)
+ .get(`/friends/${friend_id}/characters/${char.character_id}/homeworks`)
.then(r => ({ id: char.character_id, data: r.data }))
)
)
@@ -55,7 +55,7 @@ export default function FriendCharacterDashboard() {
}
}
fetchData()
- }, [friendId])
+ }, [friend_id])
return (
diff --git a/src/pages/FriendList.tsx b/src/pages/FriendList.tsx
deleted file mode 100644
index c3c9bab..0000000
--- a/src/pages/FriendList.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Box, Typography } from '@mui/material'
-
-export default function FriendList() {
- return (
-
-
- 친구 목록
-
- 준비 중...
-
- )
-}
diff --git a/src/pages/FriendRequests.tsx b/src/pages/FriendRequests.tsx
deleted file mode 100644
index 53de455..0000000
--- a/src/pages/FriendRequests.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Box, Typography } from '@mui/material'
-
-export default function FriendRequests() {
- return (
-
-
- 요청 관리
-
- 준비 중...
-
- )
-}