Skip to content

Commit

Permalink
UIIN-1933 correctly place/omit accordion separators (#1652)
Browse files Browse the repository at this point in the history
Several accordions' separators were incorrect, probably as a result of
copy-paste accordions as new filters were added.

Refs UIIN-1933
  • Loading branch information
zburke authored and mkuklis committed Apr 10, 2022
1 parent 6c5ace6 commit 75c46b8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ const HoldingsRecordFilters = (props) => {
label={<FormattedMessage id="ui-inventory.statisticalCode" />}
id={FACETS.HOLDINGS_STATISTICAL_CODE_IDS}
name={FACETS.HOLDINGS_STATISTICAL_CODE_IDS}
separator={false}
closedByDefault
header={FilterAccordionHeader}
displayClearButton={activeFilters[FACETS.HOLDINGS_STATISTICAL_CODE_IDS]?.length > 0}
Expand Down
2 changes: 0 additions & 2 deletions src/components/InstanceFilters/InstanceFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ const InstanceFilters = props => {
label={<FormattedMessage id={`ui-inventory.instances.${FACETS.LANGUAGE}`} />}
id={FACETS.LANGUAGE}
name={FACETS.LANGUAGE}
separator={false}
closedByDefault
header={FilterAccordionHeader}
displayClearButton={activeFilters[FACETS.LANGUAGE]?.length > 0}
Expand Down Expand Up @@ -319,7 +318,6 @@ const InstanceFilters = props => {
label={<FormattedMessage id="ui-inventory.statisticalCode" />}
id={FACETS.STATISTICAL_CODE_IDS}
name={FACETS.STATISTICAL_CODE_IDS}
separator={false}
closedByDefault
header={FilterAccordionHeader}
displayClearButton={activeFilters[FACETS.STATISTICAL_CODE_IDS]?.length > 0}
Expand Down
4 changes: 1 addition & 3 deletions src/components/ItemFilters/ItemFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ const ItemFilters = (props) => {
header={FilterAccordionHeader}
displayClearButton={!_.isEmpty(activeFilters[FACETS.ITEM_STATUS])}
onClearFilter={() => onClear(FACETS.ITEM_STATUS)}
separator={false}
>
<CheckboxFacet
name={FACETS.ITEM_STATUS}
Expand All @@ -151,7 +152,6 @@ const ItemFilters = (props) => {
label={<FormattedMessage id={`ui-inventory.filters.${FACETS.EFFECTIVE_LOCATION}`} />}
id={FACETS.EFFECTIVE_LOCATION}
name={FACETS.EFFECTIVE_LOCATION}
separator
header={FilterAccordionHeader}
displayClearButton={activeFilters[FACETS.EFFECTIVE_LOCATION]?.length > 0}
onClearFilter={() => onClear(FACETS.EFFECTIVE_LOCATION)}
Expand Down Expand Up @@ -191,7 +191,6 @@ const ItemFilters = (props) => {
label={<FormattedMessage id={`ui-inventory.${FACETS.MATERIAL_TYPE}`} />}
id={FACETS.MATERIAL_TYPE}
name={FACETS.MATERIAL_TYPE}
separator
closedByDefault
header={FilterAccordionHeader}
displayClearButton={!_.isEmpty(activeFilters[FACETS.MATERIAL_TYPE])}
Expand Down Expand Up @@ -231,7 +230,6 @@ const ItemFilters = (props) => {
label={<FormattedMessage id="ui-inventory.statisticalCode" />}
id={FACETS.ITEMS_STATISTICAL_CODE_IDS}
name={FACETS.ITEMS_STATISTICAL_CODE_IDS}
separator={false}
closedByDefault
header={FilterAccordionHeader}
displayClearButton={activeFilters[FACETS.ITEMS_STATISTICAL_CODE_IDS]?.length > 0}
Expand Down

0 comments on commit 75c46b8

Please sign in to comment.