diff --git a/frontend/web/src/atom.tsx b/frontend/web/src/atom.tsx index 5a9851c..eb8e86b 100644 --- a/frontend/web/src/atom.tsx +++ b/frontend/web/src/atom.tsx @@ -4,7 +4,7 @@ export const dayDetailModalState = atom({ key: 'dayDetailModal', default: { visible: false, - date: new Date(), + date: '0000-00-00', }, }); @@ -13,6 +13,24 @@ export const meetingAddModalVisibleState = atom({ default: false, }); +export const meetingModifyModalState = atom({ + key: 'meetingModifyModal', + default: { + visible: false, + meeting: { + title: '', + date: '0000-00-00', + startTime: '00:00', + endTime: '00:00', + repeat: 'none', + content: '', + meetingId: -9999, + roomId: -9999, + }, + participants: [{ slackId: '', name: '', email: '', groupId: -9999, role: '' }], + }, +}); + export const signUpModalVisibleState = atom({ key: 'signUpModalVisible', default: false, diff --git a/frontend/web/src/components/atoms/drop_down.tsx b/frontend/web/src/components/atoms/drop_down.tsx index efedeb4..d5f4e2b 100644 --- a/frontend/web/src/components/atoms/drop_down.tsx +++ b/frontend/web/src/components/atoms/drop_down.tsx @@ -26,6 +26,7 @@ type dropDownProps = { width?: number; id?: string; disabled?: boolean; + defaultValue?: string; onChange?: (e: React.ChangeEvent) => void; }; @@ -38,6 +39,7 @@ const DropDown: React.FC = ({ width, id, disabled = false, + defaultValue = 'default', onChange, }: dropDownProps) => { return ( @@ -48,8 +50,9 @@ const DropDown: React.FC = ({ width={width} onChange={onChange} id={id} - defaultValue='default' + defaultValue={defaultValue} disabled={disabled} + key={defaultValue} >