Skip to content

Commit 3deae80

Browse files
committed
fix(icon): show close icon when chat is open
1 parent 7da726f commit 3deae80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
Flex,
1212
Heading
1313
} from '@chakra-ui/react'
14-
import { ChatIcon } from '@chakra-ui/icons'
14+
import { ChatIcon, CloseIcon } from '@chakra-ui/icons'
1515

1616
import styles from './styles.module.css'
1717
import Landing from './components/Landing/Landing'
@@ -38,7 +38,7 @@ export const ChmodChatComponent = ({ chatProps }) => {
3838
return (
3939
<ChakraProvider>
4040
<Circle className={styles.chatIcon} onClick={onToggle}>
41-
<ChatIcon />
41+
{!isOpen ? <ChatIcon color='white' /> : <CloseIcon color='white' />}
4242
</Circle>
4343
{isOpen && (
4444
<Fade in={isOpen}>

0 commit comments

Comments
 (0)