more cleanup
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>congruity App</title>
|
<title>kohngrüti app</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import '../styles/button.css';
|
||||||
|
|
||||||
type ButtonProps = {
|
type ButtonProps = {
|
||||||
onClick: () => void;
|
onClick: () => void;
|
||||||
isLoading: boolean;
|
isLoading: boolean;
|
||||||
@@ -6,7 +8,7 @@ type ButtonProps = {
|
|||||||
|
|
||||||
const Button = ({ onClick, isLoading, label }: ButtonProps) => {
|
const Button = ({ onClick, isLoading, label }: ButtonProps) => {
|
||||||
return (
|
return (
|
||||||
<button onClick={onClick} disabled={isLoading}>
|
<button className="primaryButton" onClick={onClick} disabled={isLoading}>
|
||||||
{isLoading ? 'Working...' : label}
|
{isLoading ? 'Working...' : label}
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|||||||
4
frontend/src/styles/button.css
Normal file
4
frontend/src/styles/button.css
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
.primaryButton {
|
||||||
|
width: 10rem;
|
||||||
|
height: 2.5rem;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user