2
0

🐛 Fix default theme colors not appearing

This commit is contained in:
Baptiste Arnaud
2024-02-09 07:58:01 +01:00
parent f7d3d58ede
commit a0ab3b4d82
2 changed files with 12 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ export const ChatThemeSettings = ({
fileName: 'hostAvatar', fileName: 'hostAvatar',
}} }}
title={t('theme.sideMenu.chat.botAvatar')} title={t('theme.sideMenu.chat.botAvatar')}
avatarProps={chatTheme?.hostAvatar} avatarProps={chatTheme?.hostAvatar ?? defaultTheme.chat.hostAvatar}
isDefaultCheck isDefaultCheck
onAvatarChange={updateHostAvatar} onAvatarChange={updateHostAvatar}
/> />
@@ -70,13 +70,13 @@ export const ChatThemeSettings = ({
fileName: 'guestAvatar', fileName: 'guestAvatar',
}} }}
title={t('theme.sideMenu.chat.userAvatar')} title={t('theme.sideMenu.chat.userAvatar')}
avatarProps={chatTheme?.guestAvatar} avatarProps={chatTheme?.guestAvatar ?? defaultTheme.chat.guestAvatar}
onAvatarChange={updateGuestAvatar} onAvatarChange={updateGuestAvatar}
/> />
<Stack borderWidth={1} rounded="md" p="4" spacing={4}> <Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">{t('theme.sideMenu.chat.botBubbles')}</Heading> <Heading fontSize="lg">{t('theme.sideMenu.chat.botBubbles')}</Heading>
<HostBubbles <HostBubbles
hostBubbles={chatTheme?.hostBubbles} hostBubbles={chatTheme?.hostBubbles ?? defaultTheme.chat.hostBubbles}
onHostBubblesChange={updateHostBubbles} onHostBubblesChange={updateHostBubbles}
/> />
</Stack> </Stack>
@@ -84,20 +84,25 @@ export const ChatThemeSettings = ({
<Stack borderWidth={1} rounded="md" p="4" spacing={4}> <Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">{t('theme.sideMenu.chat.userBubbles')}</Heading> <Heading fontSize="lg">{t('theme.sideMenu.chat.userBubbles')}</Heading>
<GuestBubbles <GuestBubbles
guestBubbles={chatTheme?.guestBubbles} guestBubbles={
chatTheme?.guestBubbles ?? defaultTheme.chat.guestBubbles
}
onGuestBubblesChange={updateGuestBubbles} onGuestBubblesChange={updateGuestBubbles}
/> />
</Stack> </Stack>
<Stack borderWidth={1} rounded="md" p="4" spacing={4}> <Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">{t('theme.sideMenu.chat.buttons')}</Heading> <Heading fontSize="lg">{t('theme.sideMenu.chat.buttons')}</Heading>
<ButtonsTheme <ButtonsTheme
buttons={chatTheme?.buttons} buttons={chatTheme?.buttons ?? defaultTheme.chat.buttons}
onButtonsChange={updateButtons} onButtonsChange={updateButtons}
/> />
</Stack> </Stack>
<Stack borderWidth={1} rounded="md" p="4" spacing={4}> <Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg">{t('theme.sideMenu.chat.inputs')}</Heading> <Heading fontSize="lg">{t('theme.sideMenu.chat.inputs')}</Heading>
<InputsTheme inputs={chatTheme?.inputs} onInputsChange={updateInputs} /> <InputsTheme
inputs={chatTheme?.inputs ?? defaultTheme.chat.inputs}
onInputsChange={updateInputs}
/>
</Stack> </Stack>
<Stack borderWidth={1} rounded="md" p="4" spacing={4}> <Stack borderWidth={1} rounded="md" p="4" spacing={4}>
<Heading fontSize="lg"> <Heading fontSize="lg">

View File

@@ -31,6 +31,7 @@ const inspectTypebot = async () => {
riskLevel: true, riskLevel: true,
publicId: true, publicId: true,
customDomain: true, customDomain: true,
createdAt: true,
workspace: { workspace: {
select: { select: {
id: true, id: true,