-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-0.2.0' into LCFS-1207-AddFuelCodeCIColumnsFuels…
…OtherUse_v2
- Loading branch information
Showing
18 changed files
with
377 additions
and
52 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
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 |
---|---|---|
|
@@ -49,5 +49,6 @@ | |
"message": "Sorry, you do not have permission to access this page.", | ||
"contact": "Contact your LCFS or BCeID administrator or contact", | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"ClearFilters": "Clear filters" | ||
} |
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
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,33 @@ | ||
import { useTranslation } from 'react-i18next' | ||
import BCButton from '@/components/BCButton' | ||
import BCTypography from '@/components/BCTypography' | ||
import { faFilterCircleXmark } from '@fortawesome/free-solid-svg-icons' | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' | ||
import { faEraser } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
export const ClearFiltersButton = ({ | ||
onClick, | ||
size = 'small', | ||
color = 'primary', | ||
sx = {}, | ||
buttonRef = null | ||
}) => { | ||
const { t } = useTranslation(['common']) | ||
|
||
return ( | ||
<BCButton | ||
ref={buttonRef} | ||
variant="outlined" | ||
size={size} | ||
color={color} | ||
onClick={onClick} | ||
startIcon={<FontAwesomeIcon icon={faFilterCircleXmark} className="small-icon" />} | ||
sx={{ | ||
minHeight: '36px', | ||
...sx | ||
}} | ||
> | ||
{t('common:ClearFilters')} | ||
</BCButton> | ||
) | ||
} |
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
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.