diff --git a/components/AgentAvailability.tsx b/components/AgentAvailability.tsx index ea0b389..c935f35 100644 --- a/components/AgentAvailability.tsx +++ b/components/AgentAvailability.tsx @@ -1,5 +1,6 @@ import React from 'react'; import {Box, Flex, Text} from 'theme-ui'; +import {colors} from '../helpers/theme'; const AgentAvailability = ({ hasAvailableAgents, @@ -15,7 +16,7 @@ const AgentAvailability = ({ px={20} py={1} sx={{ - bg: 'lighter', + bg: colors.lighter, borderTop: '1px solid rgba(230, 230, 230, 0.25)', alignItems: 'center', }} @@ -25,12 +26,12 @@ const AgentAvailability = ({ sx={{ height: 8, width: 8, - bg: hasAvailableAgents ? 'green' : 'muted', + bg: hasAvailableAgents ? colors.green : colors.muted, border: '1px solid #fff', borderRadius: '50%', }} > - + {hasAvailableAgents ? agentAvailableText : agentUnavailableText} diff --git a/components/ChatFooter.tsx b/components/ChatFooter.tsx index 836a4e2..b63c5fa 100644 --- a/components/ChatFooter.tsx +++ b/components/ChatFooter.tsx @@ -1,6 +1,7 @@ import React from 'react'; import {Box, Button, Flex, Input, Textarea} from 'theme-ui'; import SendIcon from './SendIcon'; +import {colors} from '../helpers/theme'; const ChatFooter = ({ placeholder, @@ -72,7 +73,7 @@ const ChatFooter = ({