Skip to content

Commit 1003738

Browse files
committed
minor patches
1 parent ad5c06d commit 1003738

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

client/src/features/event/form/AddEventDateAndShiftTime.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const AddEventDateAndShiftTime = ({
5151
<Col xs={1}>
5252
<Button
5353
onClick={e => removeEventAndShift(eventDate)}
54-
variant='outline-dark'
55-
>Delete Event/Shift</Button>
54+
variant='outline-danger'
55+
>Delete</Button>
5656

5757
</Col>
5858
</Row>

client/src/features/event/form/EditEventForm.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,12 @@ const EditEventForm = ({ event, eventId }) => {
403403
<br></br>
404404

405405
<Row>
406-
<Col>Event Dates</Col>
406+
<Col>Event Date</Col>
407407
{/* <Col xs={1}></Col> */}
408408

409-
<Col>ShiftStart Time</Col>
410-
<Col>ShiftEnd Time</Col>
411-
<Col>Shift Posituios</Col>
409+
<Col>Shift Start Time</Col>
410+
<Col>Shift End Time</Col>
411+
<Col>Shift Positions</Col>
412412
{/* <Col xs={1}></Col> */}
413413
</Row>
414414
<Row>

client/src/features/event/form/NewEventForm.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,12 @@ const NewEventForm = () => {
294294
<br></br>
295295

296296
<Row>
297-
<Col>Event Dates</Col>
297+
<Col>Event Date</Col>
298298
<Col xs={1}></Col>
299299

300-
<Col>ShiftStart Time</Col>
301-
<Col>ShiftEnd Time</Col>
302-
<Col>Shift Posituios</Col>
300+
<Col>Shift Start Time</Col>
301+
<Col>Shift End Time</Col>
302+
<Col>Shift Positions</Col>
303303
<Col xs={1}></Col>
304304
</Row>
305305
<Row>
@@ -311,7 +311,7 @@ const NewEventForm = () => {
311311
<Col>
312312
<Button
313313
type="button"
314-
variant="warning"
314+
variant="success"
315315
onClick={addEventDateAndShift}
316316
>
317317
Add Event And Shift

server/src/models/Event.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ const EventSchema = new mongoose.Schema(
6565
//y?
6666
default: undefined,
6767
},
68+
eventVenue: {
69+
type: String,
70+
required: true,
71+
},
6872

6973
localEventDates: {
7074
type: [String],
@@ -85,8 +89,6 @@ const EventSchema = new mongoose.Schema(
8589
openPositions: {
8690
type: Number,
8791
},
88-
89-
eventVenue: { type: String, required: true },
9092
},
9193
{
9294
timestamps: true,

0 commit comments

Comments
 (0)