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