Updated channel editor & fixes

This commit is contained in:
Sacha Weatherstone
2021-10-27 07:17:50 +11:00
parent 8a9c0a268a
commit 672d23d19c
27 changed files with 530 additions and 249 deletions
+6 -3
View File
@@ -2,11 +2,13 @@ import React from 'react';
import { Switch } from '@headlessui/react';
import { Label } from './form/Label.jsx';
type DefaultButtonProps = JSX.IntrinsicElements['button'];
interface ToggleProps extends DefaultButtonProps {
action?: (enabled: boolean) => void;
label?: string;
label: string;
valid?: boolean;
validationMessage?: string;
checked?: boolean;
@@ -37,12 +39,13 @@ export const Toggle = ({
return (
<div className="flex flex-col w-full">
<label
<Label label={label} />
{/* <label
htmlFor={id}
className="block text-sm font-medium text-black dark:text-white"
>
{label}
</label>
</label> */}
<div className="ml-auto">
<Switch
id={id}