Skip to content

Commit

Permalink
refactor: 주석추가 및 로직 순서, 개행 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Largopie committed Aug 8, 2024
1 parent 4dcc073 commit 6d719fe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/pages/MeetingLinkSharePage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,9 @@ export default function MeetingLinkSharePage() {
const navigate = useNavigate();
const params = useParams<{ uuid: string }>();
const uuid = params.uuid!;

const LINK = `${window.location.host}/meeting/${uuid}`;

useEffect(() => {
if (!Kakao.isInitialized()) {
Kakao.init(process.env.KAKAO_KEY);
}
}, [Kakao]);

// TODO: 약속명이 있다면, ${userName}을 templateArgs에 같이 삽입(@낙타)
const handleShareButton = () => {
Kakao.Share.sendCustom({
templateId: Number(process.env.KAKAO_MESSAGE_TEMPLATE_ID),
Expand All @@ -46,6 +40,12 @@ export default function MeetingLinkSharePage() {
});
};

useEffect(() => {
if (!Kakao.isInitialized()) {
Kakao.init(process.env.KAKAO_KEY);
}
}, [Kakao]);

return (
<div css={s_container}>
<LogoSunglass width="220" height="220" />
Expand Down

0 comments on commit 6d719fe

Please sign in to comment.