Skip to content

Commit 0bc9bd0

Browse files
committed
[FE] feat: 컨트롤러 컴포넌트 연결 아이콘 클릭시 상태 변경 (#74)
1 parent a7a3604 commit 0bc9bd0

File tree

1 file changed

+3
-1
lines changed
  • src/frontend/src/components/guild/VoiceChannelController

1 file changed

+3
-1
lines changed

src/frontend/src/components/guild/VoiceChannelController/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { BsFillTelephoneXFill } from 'react-icons/bs';
22

3+
import { useChannelActionStore } from '@/stores/channelAction';
34
import { useChannelInfoStore } from '@/stores/channelInfo';
45
import { useGuildInfoStore } from '@/stores/guildInfo';
56

@@ -9,6 +10,7 @@ import * as S from './styles';
910

1011
const VoiceChannelController = () => {
1112
const { selectedChannel } = useChannelInfoStore();
13+
const { setIsInVoiceChannel } = useChannelActionStore();
1214
const { guildName } = useGuildInfoStore();
1315

1416
return (
@@ -20,7 +22,7 @@ const VoiceChannelController = () => {
2022
{selectedChannel?.name} / {guildName}
2123
</S.ChannelInfoText>
2224
</S.InfoText>
23-
<BsFillTelephoneXFill size={20} />
25+
<BsFillTelephoneXFill size={20} onClick={() => setIsInVoiceChannel(false)} />
2426
</S.ConnectStatusWrapper>
2527
<VoiceChannelActions />
2628
</S.VoiceChannelController>

0 commit comments

Comments
 (0)