forked from openedx/frontend-app-authoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chris/FAL-3528-taxonomy-export-menu' into rpenido/fal-3…
…529-bare-bones-taxonomy-detail-page
- Loading branch information
Showing
19 changed files
with
263 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
@import "./export-stepper/ExportStepper"; | ||
@import "./export-footer/ExportFooter"; | ||
|
||
.export { | ||
.help-sidebar { | ||
margin-top: 7.188rem; | ||
} | ||
|
||
.pgn__stepper-header-step-list { | ||
flex-direction: column; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import React, { useContext } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { FormattedMessage } from '@edx/frontend-platform/i18n'; | ||
import { DataTableContext, Button } from '@edx/paragon'; | ||
|
||
const FilterStatus = ({ | ||
className, variant, size, clearFiltersText, buttonClassName, | ||
}) => { | ||
const { | ||
setAllFilters, RowStatusComponent, page, rows, | ||
} = useContext(DataTableContext); | ||
if (!setAllFilters) { | ||
return null; | ||
} | ||
|
||
const RowStatus = RowStatusComponent; | ||
|
||
const pageSize = page?.length || rows?.length; | ||
|
||
return ( | ||
<div className={className}> | ||
<div className="pl-1"> | ||
<span>Filters applied</span> | ||
{!!pageSize && ' ('} | ||
<RowStatus className="d-inline" /> | ||
{!!pageSize && ')'} | ||
</div> | ||
<Button | ||
className={buttonClassName} | ||
variant={variant} | ||
size={size} | ||
onClick={() => setAllFilters([])} | ||
> | ||
{clearFiltersText === undefined | ||
? ( | ||
<FormattedMessage | ||
id="pgn.DataTable.FilterStatus.clearFiltersText" | ||
defaultMessage="Clear filters" | ||
description="A text that appears on the `Clear filters` button" | ||
/> | ||
) | ||
: clearFiltersText} | ||
</Button> | ||
</div> | ||
); | ||
}; | ||
|
||
FilterStatus.defaultProps = { | ||
/** Specifies class name to append to the base element. */ | ||
className: null, | ||
/** Specifies class name to append to the button. */ | ||
buttonClassName: 'pgn__smart-status-button', | ||
/** The visual style of the `FilterStatus`. */ | ||
variant: 'link', | ||
/** The size of the `FilterStatus`. */ | ||
size: 'inline', | ||
/** A text that appears on the `Clear filters` button, defaults to 'Clear filters'. */ | ||
clearFiltersText: undefined, | ||
}; | ||
|
||
FilterStatus.propTypes = { | ||
className: PropTypes.string, | ||
buttonClassName: PropTypes.string, | ||
variant: PropTypes.string, | ||
size: PropTypes.string, | ||
clearFiltersText: PropTypes.oneOfType([PropTypes.element, PropTypes.string]), | ||
}; | ||
|
||
export default FilterStatus; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.