feat: initial import — ClickerZ formation project (Express + React/Vite)
This commit is contained in:
16
Frontend/src/components/buttons/PrimaryButton.jsx
Executable file
16
Frontend/src/components/buttons/PrimaryButton.jsx
Executable file
@@ -0,0 +1,16 @@
|
||||
import PropTypes from "prop-types";
|
||||
import "../../scss/components/buttons.scss";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
export default function PrimaryButton({ btnText, btnLink }) {
|
||||
PrimaryButton.propTypes = {
|
||||
btnText: PropTypes.string.isRequired,
|
||||
btnLink: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
return (
|
||||
<Link className="primary-button" to={btnLink}>
|
||||
{btnText}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user