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.
- Loading branch information
Showing
48 changed files
with
2,437 additions
and
151 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
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,2 @@ | ||
# Use to simulate different environments (DEV, UAT, PROD) | ||
REACT_APP_ENV=DEV |
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
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,5 @@ | ||
.ReactModal__Overlay--before-close { | ||
opacity: 0; | ||
transform: translate(48%, 48%) scale(0.1, 0) skew(35deg, 35deg); | ||
transition: all 1500ms ease-out; | ||
} |
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,86 @@ | ||
import React from "react"; | ||
import PropTypes from "prop-types"; | ||
import { createUseStyles } from "react-jss"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { faAngleUp } from "@fortawesome/free-solid-svg-icons"; | ||
import { faAngleDown } from "@fortawesome/free-solid-svg-icons"; | ||
|
||
const useStyles = createUseStyles({ | ||
expandCollapseFlexContainer: { | ||
gridColumn: "h-end", | ||
display: "flex", | ||
flexDirection: "row", | ||
justifyContent: "flex-end", | ||
margin: "20px 0px" | ||
}, | ||
faqExpandIcons: { | ||
display: "flex", | ||
flexDirection: "column" | ||
}, | ||
expandAllButton: { | ||
backgroundColor: "transparent", | ||
border: "0", | ||
cursor: "pointer", | ||
textDecoration: "underline" | ||
}, | ||
collapseAllButton: { | ||
marginRight: "1em", | ||
backgroundColor: "transparent", | ||
border: "0", | ||
cursor: "pointer", | ||
textDecoration: "underline" | ||
}, | ||
faqCarotIcon: { | ||
fontSize: "14px", | ||
margin: "-2px" | ||
}, | ||
expandCollapseAll: { | ||
display: "flex", | ||
margin: "5px" | ||
} | ||
}); | ||
|
||
const ExpandButtons = props => { | ||
const classes = useStyles(); | ||
const { expandAll, collapseAll } = props; | ||
|
||
return ( | ||
<div className={classes.expandCollapseFlexContainer}> | ||
<div className={classes.expandCollapseAll}> | ||
<div className={classes.faqExpandIcons}> | ||
<FontAwesomeIcon icon={faAngleUp} className={classes.faqCarotIcon} /> | ||
<FontAwesomeIcon | ||
icon={faAngleDown} | ||
className={classes.faqCarotIcon} | ||
/> | ||
</div> | ||
<button | ||
className={classes.expandAllButton} | ||
// data-testid="resetProject" | ||
onClick={expandAll} | ||
> | ||
Expand All | ||
</button> | ||
</div> | ||
<div className={classes.expandCollapseAll}> | ||
<div className={classes.faqExpandIcons}> | ||
<FontAwesomeIcon | ||
icon={faAngleDown} | ||
className={classes.faqCarotIcon} | ||
/> | ||
<FontAwesomeIcon icon={faAngleUp} className={classes.faqCarotIcon} /> | ||
</div> | ||
<button className={classes.collapseAllButton} onClick={collapseAll}> | ||
Collapse All | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
ExpandButtons.propTypes = { | ||
expandAll: PropTypes.func.isRequired, | ||
collapseAll: PropTypes.func.isRequired | ||
}; | ||
|
||
export default ExpandButtons; |
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.