codestates / medisharp-client

🗓 촬영 한 번으로 약 정보를 얻고, 해당 약의 복용 일정도 관리할 수 있는 모바일 서비스 '약올림'.💊 건강도, 편리함도 한 단계 올려보세요.
2 stars 0 forks source link

fix/alarmupdatescreen/ui #114

Closed Gracechung-sw closed 3 years ago

Gracechung-sw commented 3 years ago
const startDayValue = new Date(data.data.results[0]['startdate']).getDay();
const endDayValue = new Date(data.data.results[0]['enddate']).getDay();
 startDay: this.state.weekName[startDayValue],
 endDay: this.state.weekName[endDayValue],

를 constructor에 추가해주어서 날짜랜더링과 요일랜더링이 함께 될 수 있도록 수정하였습니다. 디자인은 동일합니다. (월, 일, 요일로 통일, 시간은 : 으로 통일)

  1. 전체적인 setState 순서 수정하였습니다.