Skip to content
Open
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
10 changes: 5 additions & 5 deletions src/componenet/SoccerTeamDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function SoccerTeamDetail({ isLoggedIn }) { // isLoggedIn을 props로 받음
const getPlayerList = async () => {
const token = localStorage.getItem("token");
try {
const response = await axios.get(`${REACT_APP_SERVER_URL}/api/enroll/team/${teamIdx}`, {
const response = await axios.get(`${process.env.REACT_APP_SERVER_URL}/api/enroll/team/${teamIdx}`, {
headers: {
Authorization: token
}
Expand Down Expand Up @@ -98,9 +98,9 @@ function SoccerTeamDetail({ isLoggedIn }) { // isLoggedIn을 props로 받음
<th scope="row">요일</th>
<td>{sortDays(soccerTeam.day)}</td>
<th scope="row">시작 시간</th>
<td>{soccerTeam.startTime}</td>
<td>{soccerTeam.startTime.substring(0, 5)}</td>
<th scope="row">종료 시간</th>
<td>{soccerTeam.endTime}</td>
<td>{soccerTeam.endTime.substring(0, 5)}</td>
<th scope="row">운영 기간</th>
<td>{soccerTeam.period}년</td>
<th scope="row">팀 연령대</th>
Expand Down Expand Up @@ -175,8 +175,8 @@ function SoccerTeamDetail({ isLoggedIn }) { // isLoggedIn을 props로 받음
<td><Link to={`/playerDetail/${player.id}`} state={{ teamId: soccerTeam.id }}>{player.playerName}</Link></td>
<td><Link to={`/playerDetail/${player.id}`} state={{ teamId: soccerTeam.id }}>{player.title}</Link></td>
<td>{player.phoneNumber}</td>
<td>{player.createdAt}</td>
<td>{player.updatedAt}</td>
<td>{new Date(player.createdAt).toLocaleString()}</td>
<td>{new Date(player.updatedAt).toLocaleString()}</td>
</tr>
))
) : (
Expand Down
2 changes: 1 addition & 1 deletion src/componenet/SoccerTeamList.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const SoccerTeamList = ({ isLoggedIn, onLogout }) => { // isLoggedIn과 onLogou
<td>{team.name}</td>
<td>{team.region}</td>
<td>{sortDays(team.day)}</td>
<td>{`${team.startTime} - ${team.endTime}`}</td>
<td>{`${team.startTime.substring(0, 5)} - ${team.endTime.substring(0, 5)}`}</td>
<td>{new Date(team.createdAt).toLocaleDateString()}</td>
<td>{new Date(team.updatedAt).toLocaleDateString()}</td>
</tr>
Expand Down