We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4446e3f commit 91d2ff9Copy full SHA for 91d2ff9
src/app/onboarding/page.tsx
@@ -9,6 +9,8 @@ import { useRouter } from 'next/navigation';
9
import { useSwipeable } from 'react-swipeable';
10
import styled from 'styled-components';
11
import { theme } from '@/styles/theme';
12
+import { putOnboarding } from '@/api/mypage/user';
13
+import { setOnboarding } from '@/utils/storage';
14
15
const Onboarding = () => {
16
const [currentPage, setCurrentPage] = useState(0);
@@ -34,6 +36,8 @@ const Onboarding = () => {
34
36
if (currentPage === 0) {
35
37
setCurrentPage(1);
38
} else {
39
+ putOnboarding();
40
+ setOnboarding('true');
41
router.push('/planet');
42
}
43
};
0 commit comments