Skip to content

Commit

Permalink
馃拕 Fix key component in tooltip for dark mode
Browse files Browse the repository at this point in the history
Closes #1212
  • Loading branch information
baptisteArno committed Feb 5, 2024
1 parent 9b5436d commit 5e9dfaa
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Stack,
Tag,
Text,
useColorModeValue,
} from '@chakra-ui/react'
import { Settings } from '@typebot.io/schemas'
import React from 'react'
Expand All @@ -27,6 +28,7 @@ export const GeneralSettingsForm = ({
generalSettings,
onGeneralSettingsChange,
}: Props) => {
const keyBg = useColorModeValue(undefined, 'gray.600')
const toggleRememberUser = (isEnabled: boolean) =>
onGeneralSettingsChange({
...generalSettings,
Expand Down Expand Up @@ -98,12 +100,19 @@ export const GeneralSettingsForm = ({
<MoreInfoTooltip>
<Stack>
<Text>
Choose <Tag size="sm">session</Tag> to remember the user as
long as he does not closes the tab or the browser.
Choose{' '}
<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>
Choose <Tag size="sm">local</Tag> to remember the user
forever.
Choose{' '}
<Tag size="sm" bgColor={keyBg}>
local
</Tag>{' '}
to remember the user forever.
</Text>
</Stack>
</MoreInfoTooltip>
Expand Down

0 comments on commit 5e9dfaa

Please sign in to comment.