Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
guesung committed Nov 15, 2023
1 parent 78ee0b4 commit 12e7483
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/[lng]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
'use client';
import { useTranslation } from '../i18n/client';
import { cookieName } from '../i18n/settings';
import { postFCMToken, usePostFCMToken } from '@/apis/notifications';
import { postFCMToken } from '@/apis/notifications';
import { useDidMount } from '@/hooks/common/useDidMount';
import useAppRouter from '@/hooks/useAppRouter';
import { hasToken } from '@/utils/auth/tokenController';
import { getLocalCookie, setLocalCookie } from '@/utils/cookieController';
import { copyToClipboard } from '@/utils/copyToClipboard';
import { afterDay60 } from '@/utils/date';
import { getIsApp } from '@/utils/getIsApp';
import { useEffect } from 'react';

export default function Home() {
const { i18n } = useTranslation('common');
Expand All @@ -23,7 +22,9 @@ export default function Home() {
await copyToClipboard(data);
switch (type) {
case 'FCM_TOKEN':
postFCMToken({ token: data });
postFCMToken({ token: data }).then(() => {
alert(data);
});
}
};

Expand Down

0 comments on commit 12e7483

Please sign in to comment.