generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Reset Filters/Sort button style to tertiary
- Loading branch information
Showing
2 changed files
with
35 additions
and
2 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,32 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import Button from "./Button"; | ||
import { MdPrint } from "react-icons/md"; | ||
|
||
const TertiaryButton = ({ id, onClick, isDisabled, isDisplayed, children }) => { | ||
return ( | ||
<Button | ||
type="input" | ||
color={"colorDisabled"} | ||
variant="download" | ||
onClick={onClick} | ||
id={id} | ||
data-testid={id} | ||
disabled={isDisabled} | ||
isDisplayed={isDisplayed} | ||
> | ||
<MdPrint style={{ marginRight: "0.5em" }} /> | ||
{children} | ||
</Button> | ||
); | ||
}; | ||
|
||
TertiaryButton.propTypes = { | ||
children: PropTypes.object, | ||
onClick: PropTypes.func, | ||
id: PropTypes.string.isRequired, | ||
isDisabled: PropTypes.bool, | ||
isDisplayed: PropTypes.bool.isRequired | ||
}; | ||
|
||
export default TertiaryButton; |
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