Skip to content

Commit

Permalink
Merge pull request #4482 from webkom/ivarnakken/aba-845-correctly-che…
Browse files Browse the repository at this point in the history
…ck-checkboxes-on-events

Accurately check checkboxes on /events filter
  • Loading branch information
ivarnakken committed Feb 23, 2024
2 parents 6107c87 + 1b4a322 commit 9182e56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/routes/bdb/components/OptionsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class OptionsBox extends Component<Props, State> {
<div className={styles.section}>
<CheckBox
id="isActive"
value={this.state.active}
checked={this.state.active}
name="active"
label="Er aktiv"
onChange={() => this.toggleSection('active')}
Expand Down Expand Up @@ -95,7 +95,7 @@ export default class OptionsBox extends Component<Props, State> {

<CheckBox
id="hasStudentContact"
value={this.state.studentContact}
checked={this.state.studentContact}
name="studentContact"
label="Har studentkontakt ..."
onChange={() => this.toggleSection('studentContact')}
Expand Down
8 changes: 4 additions & 4 deletions app/routes/events/components/EventList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,25 +221,25 @@ const EventList = () => {
<CheckBox
id="companyPresentation"
label="Bedpres"
value={showCompanyPresentation}
checked={showCompanyPresentation}
onChange={toggleEventType('company_presentation')}
/>
<CheckBox
id="course"
label="Kurs"
value={showCourse}
checked={showCourse}
onChange={toggleEventType('course')}
/>
<CheckBox
id="social"
label="Sosialt"
value={showSocial}
checked={showSocial}
onChange={toggleEventType('social')}
/>
<CheckBox
id="other"
label="Annet"
value={showOther}
checked={showOther}
onChange={toggleEventType('other')}
/>
</div>
Expand Down

0 comments on commit 9182e56

Please sign in to comment.