generated from Team-INSERT/Repository-generator-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from Team-INSERT/feat/ber
베르실 예약 페이지 API 완성
- Loading branch information
Showing
22 changed files
with
445 additions
and
159 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const emptyReserve = { | ||
reservedBerNumber: [], | ||
berResList: [ | ||
{ | ||
id: 0, | ||
berNumber: 0, | ||
reservation: "2000-03-01", | ||
reservationUsersName: "", | ||
user: { | ||
id: 0, | ||
name: "", | ||
nickname: "", | ||
profileImage: "", | ||
grade: 0, | ||
class_number: 0, | ||
student_number: 0, | ||
}, | ||
}, | ||
], | ||
}; | ||
|
||
export default emptyReserve; |
This file contains 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default interface ICreateReserve { | ||
berNumber: number; | ||
reservationTime: string; | ||
reservationUsersName: string; | ||
} |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default interface IReserve { | ||
id: number; | ||
berNumber: number; | ||
reservation: string; | ||
reservationUsersName: string; | ||
user: { | ||
id: number; | ||
name: string; | ||
nickname: string; | ||
profileImage: string; | ||
grade: number; | ||
class_number: number; | ||
student_number: number; | ||
}; | ||
} |
This file contains 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import IReserve from "./reserve.interface"; | ||
|
||
export default interface IReserveList { | ||
reservedBerNumber: Array<number>; | ||
berResList: Array<IReserve>; | ||
} |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Category } from "@/components/atoms"; | ||
import { reserveViewTypeStore } from "@/store/reserveViewType.store"; | ||
import React from "react"; | ||
import { useRecoilState } from "recoil"; | ||
import styled from "styled-components"; | ||
|
||
const ReserveCategories = () => { | ||
const [checked, setChecked] = useRecoilState(reserveViewTypeStore); | ||
|
||
return ( | ||
<CategoryBox> | ||
{["신청하기", "목록 보기"].map((title) => ( | ||
<Category | ||
key={title} | ||
id={title} | ||
name="reserve" | ||
checked={checked === title} | ||
onClick={() => setChecked(title)} | ||
label={title} | ||
/> | ||
))} | ||
</CategoryBox> | ||
); | ||
}; | ||
|
||
const CategoryBox = styled.div` | ||
display: flex; | ||
gap: 8px; | ||
flex-wrap: wrap; | ||
`; | ||
|
||
export default ReserveCategories; |
Oops, something went wrong.