Check-in button -> green

This commit is contained in:
Kalle (Sendou)
2021-12-22 22:36:12 +02:00
parent ef60e3e569
commit 5148247f0c
3 changed files with 14 additions and 2 deletions

View File

@@ -2,7 +2,12 @@ import classNames from "classnames";
import * as React from "react";
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: "outlined" | "destructive" | "minimal" | "minimal-destructive";
variant?:
| "outlined"
| "outlined-success"
| "destructive"
| "minimal"
| "minimal-destructive";
tiny?: boolean;
loading?: boolean;
loadingText?: string;
@@ -25,6 +30,7 @@ export function Button(props: ButtonProps) {
<button
className={classNames(className, {
outlined: variant === "outlined",
"outlined-success": variant === "outlined-success",
destructive: variant === "destructive",
"minimal-destructive": variant === "minimal-destructive",
minimal: variant === "minimal",

View File

@@ -117,7 +117,7 @@ export function ActionSectionBeforeStartContent({
className="tournament__action-section__button-container"
>
<Button
variant="outlined"
variant="outlined-success"
loadingText="Checking in..."
type="submit"
loading={fetcher.state !== "idle"}

View File

@@ -116,6 +116,12 @@ button.outlined {
color: var(--theme);
}
button.outlined-success {
border-color: var(--theme-success);
background-color: transparent;
color: var(--theme-success);
}
button.tiny {
font-size: var(--fonts-xs);
padding-block: var(--s-1);