-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add designs page and design modal
- Loading branch information
Showing
4 changed files
with
57 additions
and
7 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
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,16 @@ | ||
import RowButtonBlock from "../../components/atoms/blocks/RowButtonBlock"; | ||
import Header from "../../components/layouts/Header"; | ||
import Slide from "../../components/layouts/PageSlide"; | ||
|
||
function DesignsPage() { | ||
return ( | ||
<> | ||
<Header title="디자인 페이지" /> | ||
<Slide> | ||
<RowButtonBlock text="스터디 점수판" url="designs/studyAttendance" /> | ||
</Slide> | ||
</> | ||
); | ||
} | ||
|
||
export default DesignsPage; |
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,23 @@ | ||
import { useState } from "react"; | ||
import RowButtonBlock from "../../components/atoms/blocks/RowButtonBlock"; | ||
import Header from "../../components/layouts/Header"; | ||
import Slide from "../../components/layouts/PageSlide"; | ||
import AttendanceModal from "../../design/attendance/AttendanceModal"; | ||
|
||
function StudyAttendance() { | ||
const [hasModalNumber, setHasModalNumber] = useState<1 | 2>(); | ||
return ( | ||
<> | ||
<Header title="스터디 점수판" /> | ||
<Slide> | ||
<RowButtonBlock text="기존 스터디 출석표 모달 1" func={() => setHasModalNumber(1)} /> | ||
<RowButtonBlock text="기존 스터디 출석표 모달 2" func={() => setHasModalNumber(2)} /> | ||
</Slide> | ||
{hasModalNumber && ( | ||
<AttendanceModal type={hasModalNumber} setIsModal={() => setHasModalNumber(null)} /> | ||
)} | ||
</> | ||
); | ||
} | ||
|
||
export default StudyAttendance; |