refresh webui forms and fix whatsapp bridge login state

This commit is contained in:
LPF
2026-03-11 00:26:33 +08:00
parent cfab4cd1cc
commit d9872c3da7
26 changed files with 632 additions and 308 deletions

View File

@@ -0,0 +1,24 @@
import React from 'react';
type CheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'>;
function joinClasses(...values: Array<string | undefined | false>) {
return values.filter(Boolean).join(' ');
}
const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(function Checkbox(
{ className, ...props },
ref,
) {
return (
<input
{...props}
ref={ref}
type="checkbox"
className={joinClasses('ui-checkbox', className)}
/>
);
});
export default Checkbox;
export type { CheckboxProps };