mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-11 21:58:47 +00:00
change button functions
This commit is contained in:
parent
d0d879336e
commit
8136e95c6a
7 changed files with 88 additions and 33 deletions
|
@ -3,15 +3,16 @@ import "./buttonRotkehlchen.css";
|
|||
interface ButtonPrimaryProps {
|
||||
style: "primary" | "secondary";
|
||||
label: string;
|
||||
type: "button" | "submit" | "reset";
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
export default function ButtonPrimary({ style, label, onClick }: ButtonPrimaryProps) {
|
||||
export default function ButtonPrimary({ style, label, type, onClick }: ButtonPrimaryProps) {
|
||||
return (
|
||||
<>
|
||||
{style === "primary" && (
|
||||
<button
|
||||
type="submit"
|
||||
type={type}
|
||||
className="button-primary body-m"
|
||||
onClick={onClick}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue