mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-11 21:58:47 +00:00
remove unnecessary files and rename custom button
This commit is contained in:
parent
373019dde1
commit
a598604cdb
10 changed files with 95 additions and 18299 deletions
32
code/frontend/src/components/ButtonRotkehlchen.tsx
Normal file
32
code/frontend/src/components/ButtonRotkehlchen.tsx
Normal file
|
@ -0,0 +1,32 @@
|
|||
import "./buttonRotkehlchen.css";
|
||||
|
||||
interface ButtonPrimaryProps {
|
||||
style: "primary" | "secondary";
|
||||
label: string;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
export default function ButtonPrimary({ style, label, onClick }: ButtonPrimaryProps) {
|
||||
return (
|
||||
<>
|
||||
{style === "primary" && (
|
||||
<button
|
||||
type="submit"
|
||||
className="button-primary body-m"
|
||||
onClick={onClick}
|
||||
>
|
||||
{label}
|
||||
</button>
|
||||
)}
|
||||
{style === "secondary" && (
|
||||
<button
|
||||
type="button"
|
||||
className="button-secondary body-m"
|
||||
onClick={onClick}
|
||||
>
|
||||
{label}
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue