Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
shelcia committed Mar 2, 2022
1 parent c7164eb commit 73c4e80
Show file tree
Hide file tree
Showing 12 changed files with 522 additions and 26 deletions.
198 changes: 198 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"chroma-js": "^2.4.2",
"prop-types": "^15.8.1",
"react": "^17.0.2",
"react-beautiful-dnd": "^13.1.0",
"react-dom": "^17.0.2",
"react-hot-toast": "^2.2.0",
"react-router-dom": "^6.2.1",
Expand Down
35 changes: 35 additions & 0 deletions src/common/ButtonGroups.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from "react";
import CustomButton from "../components/CustomButton";
import PropTypes from "prop-types";

const ButtonGroups = ({
value1 = "Cancel",
handler1 = () => {},
value2 = "Proceed",
handler2 = () => {},
classes = "mt-0",
alignment = "text-end",
}) => {
return (
<div className={`${classes} ${alignment}`}>
<CustomButton variant="outlined" className="me-2" onClick={handler1}>
{value1}
</CustomButton>
<CustomButton color="info" variant="gradient" onClick={handler2}>
{value2}
</CustomButton>
</div>
);
};

export default ButtonGroups;

ButtonGroups.propTypes = {
value1: PropTypes.string,
handler1: PropTypes.func,
value2: PropTypes.string,
handler2: PropTypes.func,
classes: PropTypes.string,
alignment: PropTypes.string,
// size: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl", "xxl"]),
};
Loading

0 comments on commit 73c4e80

Please sign in to comment.