Skip to content

Commit

Permalink
Merge pull request #433 from OpenCatalogi/development
Browse files Browse the repository at this point in the history
development to main, week 4
  • Loading branch information
remko48 authored Jan 30, 2024
2 parents 4cff7ee + b1ac757 commit d9adc51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pwa/src/context/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const defaultFiltersContext: IFiltersContext = {
_search: "",
organizationSearch: "",
isForked: true,
developmentStatus: "hideObsolete",
developmentStatus: "stable",
};

export const useFiltersContext = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@ export const VerticalFiltersTemplate: React.FC<VerticalFiltersTemplateProps> = (
onChange={() => setStatusRadioFilter(status.value)}
key={status.value}
>
<RadioButton className={styles.radioButton} value={status.value} checked={filters.developmentStatus === status.value} />
<RadioButton
className={styles.radioButton}
value={status.value}
checked={filters.developmentStatus === status.value}
/>
<span className={styles.radioLabel} onClick={() => setStatusRadioFilter(status.value)}>
{t(status.label)}
</span>
Expand Down Expand Up @@ -589,7 +593,8 @@ export const VerticalFiltersTemplate: React.FC<VerticalFiltersTemplateProps> = (
onChange={() => setMaintenanceTypeRadioFilter(maintenanceType.value)}
key={maintenanceType.value}
>
<RadioButton className={styles.radioButton}
<RadioButton
className={styles.radioButton}
value={maintenanceType.value}
checked={filters["embedded.maintenance.type"] === maintenanceType.value}
/>
Expand Down Expand Up @@ -668,7 +673,11 @@ export const VerticalFiltersTemplate: React.FC<VerticalFiltersTemplateProps> = (
onChange={() => setSoftwareTypeRadioFilter(softwareType.value)}
key={softwareType.value}
>
<RadioButton className={styles.radioButton} value={softwareType.value} checked={filters.softwareType === softwareType.value} />
<RadioButton
className={styles.radioButton}
value={softwareType.value}
checked={filters.softwareType === softwareType.value}
/>
<span className={styles.radioLabel} onClick={() => setSoftwareTypeRadioFilter(softwareType.value)}>
{softwareType.label}
</span>
Expand Down

0 comments on commit d9adc51

Please sign in to comment.