From 6315a4e7bb186c2b6145157f603596c452a656e7 Mon Sep 17 00:00:00 2001 From: M1kola Date: Fri, 13 Jan 2023 15:53:07 +0300 Subject: [PATCH 1/4] new design calendar and report --- src/App.js | 4 +- .../Calendar/calendarComponent.scss | 2 +- src/components/Profile/profile.scss | 6 + src/components/Profile/profileHeader.scss | 5 + src/components/Profile/summary.scss | 12 + .../ProfileCalendar/ProfileCalendar.js | 52 ++-- .../ProfileCalendarComponent.js | 2 +- .../ProfileCalendar/profileCalendar.scss | 25 +- src/components/ReportForm/ReportForm.js | 228 +++++++++--------- src/components/ReportForm/reportForm.scss | 23 +- src/pages/Profile.js | 2 +- src/pages/ProfileCalendarPage.js | 2 +- src/pages/ReportFormPage.js | 2 +- 13 files changed, 214 insertions(+), 151 deletions(-) diff --git a/src/App.js b/src/App.js index bc7cda84..be610653 100644 --- a/src/App.js +++ b/src/App.js @@ -46,9 +46,9 @@ const App = () => { path='/candidate/:id/form' component={FormPage} /> - + - + { }, [month]) return ( -
-
- -
Вернуться назад
- -

- Добрый день, {profileInfo.fio} -

-
-
- img -

{}

-
-
-

{profileInfo.position_name}

- img -
-
- - - +
+ +
+

Ваши отчеты

+
+
+ avatar +

{profileInfo.fio} {profileInfo.specification}

+ + +
-
- -
-
- -

- {month} : {totalHours} часов -

+
+
+ +

+ {month} : {totalHours} часов +

+
-
+ ) }; diff --git a/src/components/ProfileCalendar/ProfileCalendarComponent.js b/src/components/ProfileCalendar/ProfileCalendarComponent.js index b34fb4de..b14d648a 100644 --- a/src/components/ProfileCalendar/ProfileCalendarComponent.js +++ b/src/components/ProfileCalendar/ProfileCalendarComponent.js @@ -85,7 +85,7 @@ export const ProfileCalendarComponent = ({reportsDates}) => {
{calendar.map((week) => week.map((day) => ( - + +

+ Всего за день : {totalHours} часов +

+ {reportSuccess && +

Отчет отправлен

+ } +
- setScheduledInputValue(e.target.value)}/> - - - -
-
-
- -

- Всего за день : {totalHours} часов -

- {reportSuccess && -

Отчет отправлен

- }
+