Skip to content

Commit

Permalink
Merge pull request #40 from DakshChan/feature/AdminBugFixes
Browse files Browse the repository at this point in the history
Interviews Page (Bug Fixes)
  • Loading branch information
ryu-kyu committed Aug 4, 2023
2 parents 7e037bf + 9b984eb commit 2ce5272
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,22 @@ const RescheduleFilterFields = (props) => {
<CardContent sx={{ pb: 0 }}>
<Box>
<Grid container spacing={0}>
<Grid xs={6}>
<Grid xs={12}>
<Typography variant="h4" sx={{ mt: 0.9 }}>
Filter Fields
</Typography>
<Typography variant="subtitle1" sx={{ mb: 2 }}>
<Typography variant="subtitle1">
Specify which interviews you'd like to reschedule with updated
information (on right card).
information (on right-hand side).
</Typography>
<Typography variant="subtitle1">
<strong>Note</strong>: This side is for specifying the
"previous" (old) interview details. The right-side pane is for
specifying the new value(s) that the (filtered) interviews would
take on.
</Typography>
<Typography variant="subtitle1" sx={{ mb: 2, mt: 1 }}>
Do <em>not</em> write the new information on this side.
</Typography>
</Grid>
</Grid>
Expand Down Expand Up @@ -354,9 +363,14 @@ const RescheduleFilterFields = (props) => {
textField: {
variant: 'outlined',
size: 'small'
}
},
actionBar: { actions: ['today'] }
}}
value={filterFields.time ? parseISO(filterFields.time) : ''}
value={
filterFields.time != null
? parseISO(filterFields.time)
: new Date()
}
/>
</LocalizationProvider>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,12 @@ const RescheduleUpdatedFields = (props) => {
multiline
rows={4}
variant="outlined"
value={updatedFields.note == null ? '' : updatedFields.note}
onChange={(event) =>
value={
updatedFields.set_note == null ? '' : updatedFields.set_note
}
onChange={(event) => {
console.log(event.target.value);
console.log(updatedFields.note == null);
setUpdatedFields((prevState) => {
if (prevState.set_note !== event.target.value) {
return {
Expand All @@ -287,8 +291,8 @@ const RescheduleUpdatedFields = (props) => {
};
}
return prevState;
})
}
});
}}
sx={{ width: 500 }}
/>
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const InterviewsTimeline = (props) => {
const isOnline = interviewObj.location === 'Online';

const startTimeConversion = moment(interviewObj.start_time).format(
'MMMM Do YYY, h:mm a'
'MMMM Do YYYY, h:mm a'
);
const endTimeConversion = moment(interviewObj.end_time).format(
'MMMM Do YYY, h:mm a'
'MMMM Do YYYY, h:mm a'
);

const gridStyling = () => (
Expand Down

0 comments on commit 2ce5272

Please sign in to comment.