From 112c4ca0d39a406bed9c133a08c322f5d9e76ee2 Mon Sep 17 00:00:00 2001 From: selfishAltruism Date: Thu, 7 Mar 2024 12:42:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/board/boardCreate/BoardCreatePage.tsx | 14 ++++++++------ src/pages/board/postDetail/styled.ts | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pages/board/boardCreate/BoardCreatePage.tsx b/src/pages/board/boardCreate/BoardCreatePage.tsx index 007e7c47..8f9c0042 100644 --- a/src/pages/board/boardCreate/BoardCreatePage.tsx +++ b/src/pages/board/boardCreate/BoardCreatePage.tsx @@ -56,11 +56,11 @@ const BoardCreatePage: React.FC = observer(() => { }; if (me?.isCircleLeader && data.circleName !== '전체') { //동아리장이 동아리 게시판을 생성하는 경우 - if (data.category === '공지 게시판') { + if (data.category === '동아리 공지 게시판') { body.createRoleList = ['ADMIN', 'VICE_PRESIDENT', 'PRESIDENT', 'LEADER_CIRCLE']; body.circleId = me.circleIds![me.circleNames!.findIndex(circleName => circleName === data.circleName)]; - } else if (data.category === '자유 게시판') { + } else if (data.category === '동아리 자유 게시판') { body.createRoleList = [ 'ADMIN', 'VICE_PRESIDENT', @@ -138,7 +138,11 @@ const BoardCreatePage: React.FC = observer(() => { label="게시판 카테고리" control={control} required - options={['공지 게시판', '자유 게시판']} + options={ + me?.isCircleLeader + ? ['동아리 공지 게시판', '동아리 자유 게시판'] + : ['공지 게시판', '자유 게시판'] + } /> {me?.isCircleLeader ? ( { label="게시판 생성 동아리" control={control} required - options={ - me.isAdmin || me.isPresidents ? ['전체', ...me.circleNames!] : me.circleNames - } + options={me.circleNames} /> ) : null} diff --git a/src/pages/board/postDetail/styled.ts b/src/pages/board/postDetail/styled.ts index 12886a3b..3aa9ce34 100644 --- a/src/pages/board/postDetail/styled.ts +++ b/src/pages/board/postDetail/styled.ts @@ -1,6 +1,8 @@ import styled from '@emotion/styled'; export const PostContent = styled.p` + background-color: red; + width: 100%; padding: 0; height: auto; font-size: 14px;