🐛 Fix default theme colors not appearing
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user