removed event-chronjobs, used Events in hub-app insteand, added admin Btn to set Discord-User and run Event-completed-workflow. Fixed Bug of wrong participants-count in Event-Modal

This commit is contained in:
PxlLoewe
2025-06-05 23:02:34 -07:00
parent 91d811e289
commit 587884dfd9
21 changed files with 341 additions and 232 deletions

View File

@@ -1,18 +1,10 @@
import {
ButtonHTMLAttributes,
DetailedHTMLProps,
useEffect,
useState,
} from "react";
import { ButtonHTMLAttributes, DetailedHTMLProps, useEffect, useState } from "react";
import { cn } from "../../../helper/cn";
export const Button = ({
isLoading,
...props
}: DetailedHTMLProps<
ButtonHTMLAttributes<HTMLButtonElement>,
HTMLButtonElement
> & {
}: DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
isLoading?: boolean;
}) => {
const [isLoadingState, setIsLoadingState] = useState(isLoading);
@@ -34,9 +26,7 @@ export const Button = ({
}
}}
>
{isLoadingState && (
<span className="loading loading-spinner loading-sm"></span>
)}
{isLoadingState && <span className="loading loading-spinner loading-sm"></span>}
{props.children as any}
</button>
);