Unverified Commit c4103568 authored by ksmirnov's avatar ksmirnov Committed by GitHub

Merge pull request #11 from AyaDigital/hotfix/DMVP-1086

DMVP-1086 - Сверстать компонент "Настройки адреса приема" в окне созд…
parents 532cd27f 330ca233
...@@ -56,6 +56,7 @@ type AppointmentProps = { ...@@ -56,6 +56,7 @@ type AppointmentProps = {
scheduleCreated: boolean, scheduleCreated: boolean,
isScheduleCreationLoading: boolean, isScheduleCreationLoading: boolean,
scheduleError: string, scheduleError: string,
address: string,
slotsCalculation?: SlotsCountItemT[] slotsCalculation?: SlotsCountItemT[]
} & DispatchProps; } & DispatchProps;
...@@ -63,6 +64,7 @@ const AppointmentsSettings: React.FC<AppointmentProps> = ({ ...@@ -63,6 +64,7 @@ const AppointmentsSettings: React.FC<AppointmentProps> = ({
scheduleCreated, scheduleCreated,
isScheduleCreationLoading, isScheduleCreationLoading,
scheduleError, scheduleError,
address,
slotsCalculation, slotsCalculation,
updateScheduleStatus, updateScheduleStatus,
setSchedule, setSchedule,
...@@ -107,6 +109,7 @@ const AppointmentsSettings: React.FC<AppointmentProps> = ({ ...@@ -107,6 +109,7 @@ const AppointmentsSettings: React.FC<AppointmentProps> = ({
updateScheduleStatus={updateScheduleStatus} updateScheduleStatus={updateScheduleStatus}
isScheduleCreationLoading={isScheduleCreationLoading} isScheduleCreationLoading={isScheduleCreationLoading}
scheduleError={scheduleError} scheduleError={scheduleError}
address={address}
// cancelAppointment={cancelAppointment} // cancelAppointment={cancelAppointment}
/> />
</div> </div>
...@@ -118,6 +121,7 @@ const AppointmentsSettings: React.FC<AppointmentProps> = ({ ...@@ -118,6 +121,7 @@ const AppointmentsSettings: React.FC<AppointmentProps> = ({
const mapStateToProps = (state: AppStateType) => ({ const mapStateToProps = (state: AppStateType) => ({
scheduleCreated: state.schedule.scheduleCreated, scheduleCreated: state.schedule.scheduleCreated,
address: state.profile.address,
isScheduleCreationLoading: state.schedule.isScheduleCreationLoading, isScheduleCreationLoading: state.schedule.isScheduleCreationLoading,
slotsCalculation: state.schedule.slots, slotsCalculation: state.schedule.slots,
scheduleError: state.schedule.error scheduleError: state.schedule.error
......
This diff is collapsed.
...@@ -41,10 +41,10 @@ ...@@ -41,10 +41,10 @@
.settings-schedule-form-layout { .settings-schedule-form-layout {
position: absolute; position: absolute;
top: 2vw; top: 1vw;
left: 30vw; left: 18vw;
transform: translate(0%, 7%); transform: translate(0%, 7%);
width: 620px; width: 890px;
height: auto; height: auto;
padding: 0px 32px 32px 32px; padding: 0px 32px 32px 32px;
border-radius: 12px; border-radius: 12px;
...@@ -121,12 +121,49 @@ ...@@ -121,12 +121,49 @@
} }
} }
.upper-block {
@include flex-row();
column-gap: 10px;
.working-hours-block {
display: flex;
flex-direction: column;
justify-content: flex-start;
row-gap: 20px;
& > .errorBlock {
color: red;
text-align: start;
&.margin-top {
margin-top: 0px;
}
}
}
}
.lower-block {
.appointment-location-label {
@include flex-row();
align-items: center;
}
.select-clinic {
width: 556px;
padding: 8px 16px 8px 16px;
}
.description {
width: 556px;
padding: 8px 16px 8px 16px;
}
}
.calendar-block { .calendar-block {
height: 298px; height: auto;
.calendar-schedule-common { .calendar-schedule-common {
width: auto; width: auto;
height: 290px;
box-shadow: none; box-shadow: none;
border: none; border: none;
background: rgba(250, 250, 250, 1); background: rgba(250, 250, 250, 1);
...@@ -274,9 +311,10 @@ ...@@ -274,9 +311,10 @@
.time-picker-block { .time-picker-block {
@include flex-row(); @include flex-row();
column-gap: 16px; flex-direction: column;
row-gap: 12px;
width: 556px; width: 556px;
height: 48px;
padding: 8px 16px 8px 16px; padding: 8px 16px 8px 16px;
border-radius: 16px; border-radius: 16px;
...@@ -287,6 +325,7 @@ ...@@ -287,6 +325,7 @@
.select-period-block { .select-period-block {
width: 50%; width: 50%;
height: 34px;
& > div > div { & > div > div {
& > .MuiSelect-select:focus { & > .MuiSelect-select:focus {
...@@ -303,12 +342,13 @@ ...@@ -303,12 +342,13 @@
.controls-block{ .controls-block{
@include flex-row(); @include flex-row();
flex-direction: column;
justify-content: space-around; justify-content: space-around;
width: 556px; width: 556px;
height: 48px;
padding: 8px 16px 8px 16px; padding: 8px 16px 8px 16px;
border-radius: 16px; border-radius: 16px;
column-gap: 12px; row-gap: 12px;
&.empty { &.empty {
justify-content: flex-start; justify-content: flex-start;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment