@@ -5,6 +5,7 @@ import {
|
|||||||
Stack,
|
Stack,
|
||||||
Tag,
|
Tag,
|
||||||
Text,
|
Text,
|
||||||
|
useColorModeValue,
|
||||||
} from '@chakra-ui/react'
|
} from '@chakra-ui/react'
|
||||||
import { Settings } from '@typebot.io/schemas'
|
import { Settings } from '@typebot.io/schemas'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
@@ -27,6 +28,7 @@ export const GeneralSettingsForm = ({
|
|||||||
generalSettings,
|
generalSettings,
|
||||||
onGeneralSettingsChange,
|
onGeneralSettingsChange,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
|
const keyBg = useColorModeValue(undefined, 'gray.600')
|
||||||
const toggleRememberUser = (isEnabled: boolean) =>
|
const toggleRememberUser = (isEnabled: boolean) =>
|
||||||
onGeneralSettingsChange({
|
onGeneralSettingsChange({
|
||||||
...generalSettings,
|
...generalSettings,
|
||||||
@@ -98,12 +100,19 @@ export const GeneralSettingsForm = ({
|
|||||||
<MoreInfoTooltip>
|
<MoreInfoTooltip>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Text>
|
<Text>
|
||||||
Choose <Tag size="sm">session</Tag> to remember the user as
|
Choose{' '}
|
||||||
long as he does not closes the tab or the browser.
|
<Tag size="sm" bgColor={keyBg}>
|
||||||
|
session
|
||||||
|
</Tag>{' '}
|
||||||
|
to remember the user as long as he does not closes the tab or
|
||||||
|
the browser.
|
||||||
</Text>
|
</Text>
|
||||||
<Text>
|
<Text>
|
||||||
Choose <Tag size="sm">local</Tag> to remember the user
|
Choose{' '}
|
||||||
forever.
|
<Tag size="sm" bgColor={keyBg}>
|
||||||
|
local
|
||||||
|
</Tag>{' '}
|
||||||
|
to remember the user forever.
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
</MoreInfoTooltip>
|
</MoreInfoTooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user