Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2c3178a

Browse files
fix: review comments
1 parent 032f210 commit 2c3178a

File tree

3 files changed

+7
-8
lines changed
  • src

3 files changed

+7
-8
lines changed

src/components/TimezoneSelector/index.jsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ const TimezoneSelector = ({ value, onChange }) => {
2323
return (
2424
<div styleName="timezone-selector">
2525
<div styleName="label">Interview Timezone</div>
26-
<select styleName="select" onChange={onChange}>
27-
{timezoneList.map((zone, index) => (
26+
<select styleName="select" onChange={onChange} value={value} defaultValue={value}>
27+
{timezoneList.map((zone) => (
2828
<option
29-
key={index}
29+
key={zone}
3030
value={zone}
31-
selected={zone === value}
3231
>{`${zone} - UTC${moment().tz(zone).format("Z")}`}</option>
3332
))}
3433
</select>

src/routes/PositionDetails/components/InterviewPopup/ManageAvailability/index.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ const ManageAvailability = ({ scheduleDetails, onContinue }) => {
124124
};
125125

126126
// Set time zone
127-
const onChangeTimezone = (value) => {
128-
setTimezone(value);
127+
const onChangeTimezone = (event) => {
128+
setTimezone(event.target.value);
129129
};
130130

131131
/**
@@ -186,7 +186,7 @@ const ManageAvailability = ({ scheduleDetails, onContinue }) => {
186186
<div styleName="days">
187187
{days.map((day, index) => (
188188
<div
189-
key={index}
189+
key={day}
190190
onClick={() => onDayChanged(daysMapped[index], slotIndex)}
191191
styleName={cn("day", {
192192
"selected-day": slot.days.indexOf(daysMapped[index]) > -1,

src/routes/PositionDetails/components/StepsIndicator/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const StepsIndicator = ({ steps, currentStep }) => {
3535
const isCompleted = index <= currentStepIndex;
3636

3737
return (
38-
<div key={index}>
38+
<div key={step.id}>
3939
<div styleName="outer-dot" style={styles} />
4040
<div
4141
styleName={cn("dot", { "dot-completed": isCompleted })}

0 commit comments

Comments
 (0)