diff --git a/fixtures/write-form.js b/fixtures/write-form.js index 6d5cb55..1ce7831 100644 --- a/fixtures/write-form.js +++ b/fixtures/write-form.js @@ -2,9 +2,9 @@ const writeForm = { title: '스터디를 소개합니다.1', contents: '우리는 이것저것 합니다.1', moderatorId: 'user1', - applyEndDate: '2020-11-26', + applyEndDate: '2020-12-24 11:00', participants: [], - personnel: 10, + personnel: '1', tags: [ 'JavaScript', 'Algorithm', diff --git a/src/components/write/WriteButtons.jsx b/src/components/write/WriteButtons.jsx index 30a9aa1..c3968e0 100644 --- a/src/components/write/WriteButtons.jsx +++ b/src/components/write/WriteButtons.jsx @@ -4,8 +4,11 @@ import styled from '@emotion/styled'; const WriteButtonsWrapper = styled.div``; -const WriteButtons = ({ onSubmit, onCancel }) => ( +const WriteButtons = ({ error, onSubmit, onCancel }) => ( + {error && ( +
{error}
+ )}