2
0

💄 Adapt openAI logo to dark mode

This commit is contained in:
Baptiste Arnaud
2023-04-13 18:08:04 +02:00
parent 27f10159ef
commit 868b5b8370
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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