2
0

💄 Fix key component in tooltip for dark mode

Closes #1212
This commit is contained in:
Baptiste Arnaud
2024-02-05 14:41:13 +01:00
parent 9b5436d4db
commit 5e9dfaaa49

View File

@@ -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>