mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Check-in button -> green
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user