Skip to content

Commit

Permalink
Merge pull request #247 from mash-up-kr/develop
Browse files Browse the repository at this point in the history
Release v1.2.1 배포
  • Loading branch information
HaJunRyu authored May 27, 2023
2 parents 4f3a1ae + 015a516 commit e42968b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/common/ChannelTalk/ChannelTalk.component.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import { useEffect, useState } from 'react';
import ChannelService from '@/utils/services/ChannelService';
import { useDetectViewPort } from '@/hooks';
import { useRouter } from 'next/router';
import { PATH_NAME } from '@/constants';

const ChannelTalk = () => {
const [channelServiceInstance, setChannelServiceInstance] = useState<any>(null);
const router = useRouter();
const { size } = useDetectViewPort();

useEffect(() => {
setChannelServiceInstance(new ChannelService());
Expand All @@ -19,14 +14,6 @@ const ChannelTalk = () => {
});
}, [channelServiceInstance]);

useEffect(() => {
if (router.pathname === PATH_NAME.RECRUIT_PAGE && size === 'mobile') {
channelServiceInstance?.hideChannelButton();
} else {
channelServiceInstance?.showChannelButton();
}
}, [channelServiceInstance, router.pathname, size]);

return null;
};

Expand Down

0 comments on commit e42968b

Please sign in to comment.