scaffold create/edit beer form, scaffold beer page

This commit is contained in:
Aaron William Po
2023-01-23 20:13:25 -05:00
parent f08731de17
commit 972846f5a8
29 changed files with 776 additions and 70 deletions

20
components/ui/Button.tsx Normal file
View File

@@ -0,0 +1,20 @@
import { FunctionComponent } from 'react';
interface FormButtonProps {
children: string;
type: 'button' | 'submit' | 'reset';
className?: string;
}
const Button: FunctionComponent<FormButtonProps> = ({ children, type, className }) => (
// eslint-disable-next-line react/button-has-type
<button type={type} className="btn-primary btn mt-4 w-full rounded-xl">
{children}
</button>
);
Button.defaultProps = {
className: '',
};
export default Button;