Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
935 changes: 730 additions & 205 deletions apps/docs/content/docs/integrations/tailscale.mdx

Large diffs are not rendered by default.

582 changes: 582 additions & 0 deletions apps/docs/content/docs/integrations/vanta.mdx

Large diffs are not rendered by default.

360 changes: 360 additions & 0 deletions apps/docs/content/docs/integrations/zoho_desk.mdx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ interface SwitchProps {
blockId: string
subBlockId: string
title: string
value?: boolean
value?: boolean | string
isPreview?: boolean
previewValue?: boolean | null
previewValue?: boolean | string | null
disabled?: boolean
}

Expand All @@ -20,7 +20,7 @@ export function Switch({
previewValue,
disabled = false,
}: SwitchProps) {
const [storeValue, setStoreValue] = useSubBlockValue<boolean>(blockId, subBlockId)
const [storeValue, setStoreValue] = useSubBlockValue<boolean | string>(blockId, subBlockId)

const value = isPreview ? previewValue : (storeValue ?? propValue)

Expand All @@ -34,7 +34,7 @@ export function Switch({
<div className='flex items-center gap-x-3'>
<UISwitch
id={`${blockId}-${subBlockId}`}
checked={Boolean(value)}
checked={value === true || value === 'true'}
onCheckedChange={handleChange}
disabled={isPreview || disabled}
/>
Expand Down
Loading
Loading