diff --git a/apps/builder/src/components/ImageUploadContent/UnsplashPicker.tsx b/apps/builder/src/components/ImageUploadContent/UnsplashPicker.tsx index ce6ee4f18e..fc2e277d14 100644 --- a/apps/builder/src/components/ImageUploadContent/UnsplashPicker.tsx +++ b/apps/builder/src/components/ImageUploadContent/UnsplashPicker.tsx @@ -11,6 +11,7 @@ import { Spinner, Stack, Text, + useColorModeValue, } from '@chakra-ui/react' import { env, isDefined, isEmpty } from '@typebot.io/lib' import { useCallback, useEffect, useRef, useState } from 'react' @@ -30,6 +31,7 @@ type Props = { } export const UnsplashPicker = ({ imageSize, onImageSelect }: Props) => { + const unsplashLogoFillColor = useColorModeValue('black', 'white') const [isFetching, setIsFetching] = useState(false) const [images, setImages] = useState([]) const [error, setError] = useState(null) @@ -146,7 +148,7 @@ export const UnsplashPicker = ({ imageSize, onImageSelect }: Props) => { 'UNSPLASH_APP_NAME' )}&utm_medium=referral`} > - + {isDefined(error) && ( @@ -190,6 +192,7 @@ type UnsplashImageProps = { } const UnsplashImage = ({ image, onClick }: UnsplashImageProps) => { + const linkColor = useColorModeValue('gray.500', 'gray.400') const { user, urls, alt_description } = image return ( @@ -210,7 +213,7 @@ const UnsplashImage = ({ image, onClick }: UnsplashImageProps) => { 'UNSPLASH_APP_NAME' )}&utm_medium=referral`} noOfLines={1} - color="gray.500" + color={linkColor} > {user.name}