File tree 1 file changed +3
-1
lines changed
src/frontend/src/components/guild/VoiceChannelController
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { BsFillTelephoneXFill } from 'react-icons/bs' ;
2
2
3
+ import { useChannelActionStore } from '@/stores/channelAction' ;
3
4
import { useChannelInfoStore } from '@/stores/channelInfo' ;
4
5
import { useGuildInfoStore } from '@/stores/guildInfo' ;
5
6
@@ -9,6 +10,7 @@ import * as S from './styles';
9
10
10
11
const VoiceChannelController = ( ) => {
11
12
const { selectedChannel } = useChannelInfoStore ( ) ;
13
+ const { setIsInVoiceChannel } = useChannelActionStore ( ) ;
12
14
const { guildName } = useGuildInfoStore ( ) ;
13
15
14
16
return (
@@ -20,7 +22,7 @@ const VoiceChannelController = () => {
20
22
{ selectedChannel ?. name } / { guildName }
21
23
</ S . ChannelInfoText >
22
24
</ S . InfoText >
23
- < BsFillTelephoneXFill size = { 20 } />
25
+ < BsFillTelephoneXFill size = { 20 } onClick = { ( ) => setIsInVoiceChannel ( false ) } />
24
26
</ S . ConnectStatusWrapper >
25
27
< VoiceChannelActions />
26
28
</ S . VoiceChannelController >
You can’t perform that action at this time.
0 commit comments