From 4ac928934403a548ef7b500b9b70b620f24c6f09 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 02:45:02 +0000 Subject: [PATCH 1/2] Bump playwright from v1.36.1-focal to v1.36.2-focal in /server Bumps playwright from v1.36.1-focal to v1.36.2-focal. --- updated-dependencies: - dependency-name: playwright dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 2ba1cd12b..05adcc37f 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -26,7 +26,7 @@ ENV TURBO_TOKEN=$TURBO_TOKEN RUN pnpm exec turbo --filter server build -FROM mcr.microsoft.com/playwright:v1.36.1-focal as production +FROM mcr.microsoft.com/playwright:v1.36.2-focal as production WORKDIR /app From 974bf7e03218fa40d3a31ff5b41d47807b22aafe Mon Sep 17 00:00:00 2001 From: Jubair70 Date: Mon, 31 Jul 2023 15:02:17 +0600 Subject: [PATCH 2/2] fix: Work Modal Datepicker --- client/modals/builder/sections/WorkModal.tsx | 26 ++++++++------------ 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/client/modals/builder/sections/WorkModal.tsx b/client/modals/builder/sections/WorkModal.tsx index 05c0504b0..cc5c8781a 100644 --- a/client/modals/builder/sections/WorkModal.tsx +++ b/client/modals/builder/sections/WorkModal.tsx @@ -151,14 +151,11 @@ const WorkModal: React.FC = () => { label={t('builder.common.form.start-date.label')} value={dayjs(field.value)} views={['year', 'month', 'day']} - slots={{ - textField: (params) => ( - - ), + slotProps={{ + textField: { + error: !!fieldState.error, + helperText: fieldState.error?.message || t('builder.common.form.start-date.help-text') + }, }} onChange={(date: dayjs.Dayjs | null) => { date && dayjs(date).isValid() && field.onChange(dayjs(date).format('YYYY-MM-DD')); @@ -177,14 +174,11 @@ const WorkModal: React.FC = () => { label={t('builder.common.form.end-date.label')} value={dayjs(field.value)} views={['year', 'month', 'day']} - slots={{ - textField: (params) => ( - - ), + slotProps={{ + textField: { + error: !!fieldState.error, + helperText: fieldState.error?.message || t('builder.common.form.end-date.help-text') + }, }} onChange={(date: dayjs.Dayjs | null) => { date && dayjs(date).isValid() && field.onChange(dayjs(date).format('YYYY-MM-DD'));