mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-10 21:26:01 +02:00
@@ -230,6 +230,7 @@ export function SlackChannelConfigFormFields({
|
|||||||
<CheckFormField
|
<CheckFormField
|
||||||
name="disabled"
|
name="disabled"
|
||||||
label="Disable Default Configuration"
|
label="Disable Default Configuration"
|
||||||
|
labelClassName="text-neutral-900"
|
||||||
/>
|
/>
|
||||||
<p className="mt-2 text-sm text-neutral-600 italic">
|
<p className="mt-2 text-sm text-neutral-600 italic">
|
||||||
Warning: Disabling the default configuration means the bot
|
Warning: Disabling the default configuration means the bot
|
||||||
@@ -565,7 +566,7 @@ export function SlackChannelConfigFormFields({
|
|||||||
|
|
||||||
<AccordionItem className="mt-4" value="general-options">
|
<AccordionItem className="mt-4" value="general-options">
|
||||||
<AccordionTrigger>General Configuration</AccordionTrigger>
|
<AccordionTrigger>General Configuration</AccordionTrigger>
|
||||||
<AccordionContent>
|
<AccordionContent className="overflow-visible">
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
<CheckFormField
|
<CheckFormField
|
||||||
name="show_continue_in_web_ui"
|
name="show_continue_in_web_ui"
|
||||||
|
@@ -15,6 +15,7 @@ import {
|
|||||||
interface CheckFieldProps {
|
interface CheckFieldProps {
|
||||||
name: string;
|
name: string;
|
||||||
label: string;
|
label: string;
|
||||||
|
labelClassName?: string;
|
||||||
sublabel?: string;
|
sublabel?: string;
|
||||||
size?: "sm" | "md" | "lg";
|
size?: "sm" | "md" | "lg";
|
||||||
tooltip?: string;
|
tooltip?: string;
|
||||||
@@ -28,6 +29,7 @@ export const CheckFormField: React.FC<CheckFieldProps> = ({
|
|||||||
sublabel,
|
sublabel,
|
||||||
size = "md",
|
size = "md",
|
||||||
tooltip,
|
tooltip,
|
||||||
|
labelClassName,
|
||||||
...props
|
...props
|
||||||
}) => {
|
}) => {
|
||||||
const [field, , helpers] = useField<boolean>({ name, type: "checkbox" });
|
const [field, , helpers] = useField<boolean>({ name, type: "checkbox" });
|
||||||
@@ -74,7 +76,12 @@ export const CheckFormField: React.FC<CheckFieldProps> = ({
|
|||||||
className="flex flex-col cursor-pointer"
|
className="flex flex-col cursor-pointer"
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
<span className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
|
<span
|
||||||
|
className={cn(
|
||||||
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
||||||
|
labelClassName
|
||||||
|
)}
|
||||||
|
>
|
||||||
{label}
|
{label}
|
||||||
</span>
|
</span>
|
||||||
{sublabel && (
|
{sublabel && (
|
||||||
|
@@ -28,7 +28,7 @@ const RadioGroupItem = React.forwardRef<
|
|||||||
<RadioGroupPrimitive.Item
|
<RadioGroupPrimitive.Item
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"aspect-square h-3.5 w-3.5 rounded-full border border-background-200 border-background-900 text-neutral-900 ring-offset-white focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-background-800 dark:border-background-50 dark:text-neutral-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",
|
"aspect-square h-3.5 w-3.5 rounded-full border border-background-900 text-neutral-900 ring-offset-white focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-background-800 dark:text-neutral-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
Reference in New Issue
Block a user