forked from kbss-cvut/record-manager-ui
-
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.
[kbss-cvut#71] Refactor records table header into smaller components,…
… fix date filter timezone issue.
- Loading branch information
Showing
3 changed files
with
73 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
import {useI18n} from "../../hooks/useI18n"; | ||
import classNames from "classnames"; | ||
import {FaFilter} from "react-icons/fa"; | ||
import {sanitizeArray} from "../../utils/Utils"; | ||
|
||
const FilterIndicator = ({filterValue}) => { | ||
const {i18n} = useI18n(); | ||
const classes = classNames("ml-1", {invisible: sanitizeArray(filterValue).length === 0}); | ||
return <FaFilter className={classes} title={i18n("filters.active.tooltip")}/>; | ||
} | ||
|
||
export default FilterIndicator; |
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