-
Notifications
You must be signed in to change notification settings - Fork 5
Feat: 알바폼 상세 지원현황 불러오기, 내 정보 수정 유도 #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
14a1744
chore: 지원현황 데이터 테스트
yyezzzy dd287ca
chore: ApplicationStatusCard 수정
yyezzzy b7f3ae7
chore: 프론트 sorting 로직 제거
yyezzzy b5c3916
refactor: 요일 undefined 문제 수정
yyezzzy 5cc6045
chore: import 에러
yyezzzy 5ea7281
feat: myalbaform에도 상세보기 링크 연결
yyezzzy e3c1f90
chore: thead, tbody 간격 조정
yyezzzy ffdf5e3
feat: 모바일 사이즈 반응형 작업
yyezzzy 4b0eb56
chore: 알바폼 상세 반응형 작업 해야함
yyezzzy 261d29a
refator: PostsSection 코드 리펙토링
yyezzzy 7b1d829
feat: (#108) 회원가입시 작성되지 않은 정보 수정 유도
yyezzzy b1db4c3
chore: 로그인 후 /mypage로 이동
yyezzzy 6d02a73
feat: git stash apply
yyezzzy cef819c
Merge branch 'feat/userInfo-induce' of https://github.com/FE9-2/workr…
yyezzzy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 47 additions & 10 deletions
57
src/app/components/card/cardList/ApplicationStatusCard.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,55 @@ | ||
| "use client"; | ||
|
|
||
| import React from "react"; | ||
| import React, { useState } from "react"; | ||
| import { ApplicationResponse } from "@/types/response/application"; | ||
|
|
||
| import { FaSortAmountDown } from "react-icons/fa"; | ||
| import { cn } from "@/lib/tailwindUtil"; | ||
| interface ApplicationStatusCardProps { | ||
| applicationStatusData: ApplicationResponse[]; // 전달받는 데이터는 배열 | ||
| applicationStatusData: ApplicationResponse[]; | ||
| } | ||
|
|
||
| export default function ApplicationStatusCard({ applicationStatusData }: ApplicationStatusCardProps) { | ||
| // 지원현황 카드 컴포넌트 | ||
| const ApplicationStatusCard = ({ applicationStatusData }: ApplicationStatusCardProps) => { | ||
| const [experienceSort, setExperienceSort] = useState(false); | ||
| const [statusSort, setStatusSort] = useState(false); | ||
|
|
||
| const theadStyle = "text-center font-semibold text-grayscale-700"; | ||
| const tbodyStyle = "text-center"; | ||
| const sortIconStyle = "text-primary-orange-300 transition-transform hover:scale-110"; | ||
| return ( | ||
| <div> | ||
| {applicationStatusData.map((application) => ( | ||
| <div key={application.id}>{application.name}</div> // 고유 키 추가 | ||
| ))} | ||
| <div className="w-[375px] text-xs md:w-[770px] md:text-base"> | ||
| <div className="flex flex-col"> | ||
| {/* Thead */} | ||
| <div className="sticky grid grid-cols-[1fr_2fr_2fr_1fr] border-b border-line-100 px-6 py-4"> | ||
| <span className={theadStyle}>이름</span> | ||
| <span className={theadStyle}>전화번호</span> | ||
| <div className="flex items-center gap-2"> | ||
| <span className={theadStyle}>경력</span> | ||
| <button onClick={() => setExperienceSort((prev) => !prev)}> | ||
| <FaSortAmountDown className={cn(sortIconStyle, experienceSort ? "rotate-0" : "rotate-180")} /> | ||
| </button> | ||
| </div> | ||
| <div className="flex items-center gap-2"> | ||
| <span className={theadStyle}>상태</span> | ||
| <button onClick={() => setStatusSort((prev) => !prev)}> | ||
| <FaSortAmountDown className={cn(sortIconStyle, statusSort ? "rotate-0" : "rotate-180")} /> | ||
| </button> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* Tbody */} | ||
| <div className="scrollbar-custom h-[360px] overflow-y-auto md:h-[400px]"> | ||
| {applicationStatusData.map((application) => ( | ||
| <div key={application.id} className="grid grid-cols-[1fr_2fr_2fr_1fr] border-b border-line-100 px-6 py-4"> | ||
| <span className={tbodyStyle}>{application.name}</span> | ||
| <span className={tbodyStyle}>{application.phoneNumber}</span> | ||
| <span className={tbodyStyle}>{application.experienceMonths}개월</span> | ||
| <span className={tbodyStyle}>{application.status}</span> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
| }; | ||
|
|
||
| export default ApplicationStatusCard; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ export const useLogin = () => { | |
| if (data?.user) { | ||
| queryClient.setQueryData(["user"], { user: data.user }); | ||
| toast.success("로그인되었습니다!"); | ||
| router.push("/"); | ||
| router.push("/mypage"); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 아까 말씀드린대로 이부분은 목록 페이지로 보내는게 자연스러울거같아요 ~ |
||
| router.refresh(); | ||
| } | ||
| }, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정하기 -> alba/${formId}/edit
지원하기-> apply/${formId}
버튼 클릭했을때 각각 router.push 추가해주세욥 !