From df4e57263a7693df3f9b7818e37c5f4ba128f4aa Mon Sep 17 00:00:00 2001 From: takasuka_takumi Date: Tue, 4 Jun 2024 06:28:42 +0900 Subject: [PATCH] feat/takumi0616/241-editer-modal-cullum --- .../RecordEditModal.module.css | 18 ++- .../RecordEditModal/RecordEditModal.tsx | 134 ++++++++++-------- 2 files changed, 93 insertions(+), 59 deletions(-) diff --git a/view/next-project/src/components/common/RecordEditModal/RecordEditModal.module.css b/view/next-project/src/components/common/RecordEditModal/RecordEditModal.module.css index 2b7ea61..9521ffb 100644 --- a/view/next-project/src/components/common/RecordEditModal/RecordEditModal.module.css +++ b/view/next-project/src/components/common/RecordEditModal/RecordEditModal.module.css @@ -39,13 +39,25 @@ flex-flow: row; flex-wrap: nowrap; } -.modalContentContents { + +.contentsTitleAccordion { width: 100%; display: flex; justify-content: start; align-items: start; flex-flow: row; flex-wrap: nowrap; + margin-top: 24px; + margin-bottom: 24px; +} + +.modalContentContents { + width: 100%; + display: flex; + justify-content: start; + align-items: center; + flex-flow: row; + flex-wrap: nowrap; } .contentsMde { @@ -137,6 +149,6 @@ .textButton:active { } -.modalContentContents{ +.modalContentContents { font-size: 1.6rem; -} \ No newline at end of file +} diff --git a/view/next-project/src/components/common/RecordEditModal/RecordEditModal.tsx b/view/next-project/src/components/common/RecordEditModal/RecordEditModal.tsx index f50aaee..2ae72eb 100644 --- a/view/next-project/src/components/common/RecordEditModal/RecordEditModal.tsx +++ b/view/next-project/src/components/common/RecordEditModal/RecordEditModal.tsx @@ -7,6 +7,9 @@ import s from './RecordEditModal.module.css'; import 'easymde/dist/easymde.min.css'; import dynamic from 'next/dynamic'; import Switch from '@mui/material/Switch'; +import Accordion from '@mui/material/Accordion'; +import AccordionSummary from '@mui/material/AccordionSummary'; +import AccordionDetails from '@mui/material/AccordionDetails'; const SimpleMde = dynamic(() => import('react-simplemde-editor'), { ssr: false }); @@ -99,6 +102,7 @@ const RecordEditModal: FC = (props) => { const [recordMarkdown, setRecordMarkdown] = useState(''); const [homeworkMarkdown, setHomeworkMarkdown] = useState(''); const [release, setRelease] = useState(false); + const [accordionOpen, setAccordionOpen] = useState(false); useEffect(() => { const getCurriculumChaptersUrl = process.env.CSR_API_URI + '/api/v1/get_curriculums_chapter_for_index'; @@ -205,7 +209,6 @@ const RecordEditModal: FC = (props) => {
-