-
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 pull request #88 from DigitalCommons/apply-filters-button
Various front-end UI fixes (see commits in PR #88)
- Loading branch information
Showing
5 changed files
with
126 additions
and
56 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
38 changes: 38 additions & 0 deletions
38
apps/front-end/src/components/panel/applyFilters/ApplyFilters.tsx
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,38 @@ | ||
import Box from "@mui/material/Box"; | ||
import { styled } from "@mui/material/styles"; | ||
import StandardButton from "../../common/standardButton/StandardButton"; | ||
|
||
const StyledButtonContainer = styled(Box)(() => ({ | ||
width: "100%", | ||
display: "flex", | ||
justifyContent: "center", | ||
position: "sticky", | ||
padding: "var(--spacing-medium)", | ||
backgroundColor: "#fff", | ||
boxShadow: "0 0 20px rgba(0, 0, 0, 0.16)", | ||
margin: 0, | ||
"@media (min-width: 897px)": { | ||
display: "none", | ||
}, | ||
})); | ||
|
||
interface ApplyFiltersProps { | ||
buttonText: string; | ||
disabled: boolean; | ||
buttonAction: () => void; | ||
} | ||
|
||
const ApplyFilters = ({buttonText, buttonAction, disabled}: ApplyFiltersProps) => { | ||
return ( | ||
<StyledButtonContainer> | ||
<StandardButton | ||
buttonAction={buttonAction} | ||
disabled={disabled} | ||
> | ||
{buttonText} | ||
</StandardButton> | ||
</StyledButtonContainer> | ||
); | ||
}; | ||
|
||
export default ApplyFilters; |
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