💄 Adapt openAI logo to dark mode
This commit is contained in:
@@ -50,6 +50,7 @@ export const GoogleSheetConnectModal = ({
|
|||||||
<Image
|
<Image
|
||||||
src="/images/google-spreadsheets-scopes.jpeg"
|
src="/images/google-spreadsheets-scopes.jpeg"
|
||||||
alt="Google Spreadsheets checkboxes"
|
alt="Google Spreadsheets checkboxes"
|
||||||
|
rounded="md"
|
||||||
/>
|
/>
|
||||||
<Flex>
|
<Flex>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ export const BlockIcon = ({ type, ...props }: BlockIconProps): JSX.Element => {
|
|||||||
const blue = useColorModeValue('blue.500', 'blue.300')
|
const blue = useColorModeValue('blue.500', 'blue.300')
|
||||||
const orange = useColorModeValue('orange.500', 'orange.300')
|
const orange = useColorModeValue('orange.500', 'orange.300')
|
||||||
const purple = useColorModeValue('purple.500', 'purple.300')
|
const purple = useColorModeValue('purple.500', 'purple.300')
|
||||||
|
const openAIColor = useColorModeValue('black', 'white')
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case BubbleBlockType.TEXT:
|
case BubbleBlockType.TEXT:
|
||||||
return <TextBubbleIcon color={blue} {...props} />
|
return <TextBubbleIcon color={blue} {...props} />
|
||||||
@@ -106,7 +108,7 @@ export const BlockIcon = ({ type, ...props }: BlockIconProps): JSX.Element => {
|
|||||||
case IntegrationBlockType.CHATWOOT:
|
case IntegrationBlockType.CHATWOOT:
|
||||||
return <ChatwootLogo {...props} />
|
return <ChatwootLogo {...props} />
|
||||||
case IntegrationBlockType.OPEN_AI:
|
case IntegrationBlockType.OPEN_AI:
|
||||||
return <OpenAILogo {...props} />
|
return <OpenAILogo fill={openAIColor} {...props} />
|
||||||
case 'start':
|
case 'start':
|
||||||
return <FlagIcon {...props} />
|
return <FlagIcon {...props} />
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,6 @@ export const getChatsLimit = ({
|
|||||||
plan === Plan.STARTER || plan === Plan.PRO
|
plan === Plan.STARTER || plan === Plan.PRO
|
||||||
? chatsLimit[plan].graduatedPrice[additionalChatsIndex].totalIncluded
|
? chatsLimit[plan].graduatedPrice[additionalChatsIndex].totalIncluded
|
||||||
: chatsLimit[plan].totalIncluded
|
: chatsLimit[plan].totalIncluded
|
||||||
if (totalIncluded === infinity) return infinity
|
|
||||||
return totalIncluded
|
return totalIncluded
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user