@@ -5,7 +5,7 @@ import { getUserInfo, logout } from "@/api/mypage/user";
55import Button from "@/components/common/Button" ;
66import Loader , { LoaderContainer } from "@/components/common/Loader" ;
77import NavigatorBar from "@/components/common/NavigatorBar" ;
8- import { clearTokens , getRefreshToken } from "@/utils/storage" ;
8+ import { clearOnboarding , clearTokens , getRefreshToken } from "@/utils/storage" ;
99import { useRouter } from "next/navigation" ;
1010import { Suspense , useEffect , useState } from "react" ;
1111import styled from "styled-components" ;
@@ -45,6 +45,7 @@ const MyPage = () => {
4545 . then ( ( res ) => {
4646 console . log ( res . data ) ;
4747 clearTokens ( ) ;
48+ clearOnboarding ( ) ;
4849 router . push ( "/login" ) ;
4950 } )
5051 . catch ( ( err ) => console . log ( err ) ) ;
@@ -176,148 +177,148 @@ export default function MyPagePaging() {
176177}
177178
178179const Container = styled . div `
179- display: flex;
180- flex-direction: column;
181- height: 100%;
182- min-height: 100%;
183- max-height: 100%;
184- //justify-content: space-between;
185- color: white;
186- background:${ ( props ) => props . theme . colors . bg } ;
180+ display: flex;
181+ flex-direction: column;
182+ height: 100%;
183+ min-height: 100%;
184+ max-height: 100%;
185+ //justify-content: space-between;
186+ color: white;
187+ background: ${ ( props ) => props . theme . colors . bg } ;
187188` ;
188189
189190const MainContainer = styled . div `
190- display: flex;
191- flex-direction: column;
192- align-items: center;
193- padding: 24px;
194- overflow-y: auto;
195- box-sizing: border-box;
196- width: 100%;
197- &::-webkit-scrollbar {
198- width: 5px; /* Width of the scrollbar */
199- }
200-
201- &::-webkit-scrollbar-track {
202- background: ${ ( props : any ) => props . theme . colors . gray800 } ;
203- border-radius: 10px; /* Rounded corners */
204- }
205-
206- &::-webkit-scrollbar-thumb {
207- background: ${ ( props : any ) => props . theme . colors . gray600 } ;
208- border-radius: 10px; /* Rounded corners */
209- }
191+ display: flex;
192+ flex-direction: column;
193+ align-items: center;
194+ padding: 24px;
195+ overflow-y: auto;
196+ box-sizing: border-box;
197+ width: 100%;
198+ &::-webkit-scrollbar {
199+ width: 5px; /* Width of the scrollbar */
200+ }
201+
202+ &::-webkit-scrollbar-track {
203+ background: ${ ( props : any ) => props . theme . colors . gray800 } ;
204+ border-radius: 10px; /* Rounded corners */
205+ }
206+
207+ &::-webkit-scrollbar-thumb {
208+ background: ${ ( props : any ) => props . theme . colors . gray600 } ;
209+ border-radius: 10px; /* Rounded corners */
210+ }
210211` ;
211212
212213const MainWrapper = styled . div `
213- display: flex;
214- width: 100%;
215- flex-direction: column;
214+ display: flex;
215+ width: 100%;
216+ flex-direction: column;
216217` ;
217218
218219const ProfileHeader = styled . div `
219- display: flex;
220- flex-direction: row;
221- justify-content: space-between;
220+ display: flex;
221+ flex-direction: row;
222+ justify-content: space-between;
222223` ;
223224
224225const ProfileInfo = styled . div `
225- display: flex;
226- flex-direction: column;
227- gap: 4px;
226+ display: flex;
227+ flex-direction: column;
228+ gap: 4px;
228229` ;
229230
230231const ProfileName = styled . div `
231- ${ ( props : any ) => props . theme . fonts . title01 } ;
232- color: ${ ( props : any ) => props . theme . colors . white } ;
232+ ${ ( props : any ) => props . theme . fonts . title01 } ;
233+ color: ${ ( props : any ) => props . theme . colors . white } ;
233234` ;
234235
235236const ProfileEmail = styled . div `
236- ${ ( props : any ) => props . theme . fonts . body09 } ;
237- color: ${ ( props : any ) => props . theme . colors . gray400 } ;
238- display: flex;
239- flex-direction: row;
240- justify-content: flex-start;
241- gap: 7px;
237+ ${ ( props : any ) => props . theme . fonts . body09 } ;
238+ color: ${ ( props : any ) => props . theme . colors . gray400 } ;
239+ display: flex;
240+ flex-direction: row;
241+ justify-content: flex-start;
242+ gap: 7px;
242243` ;
243244
244245const ProfileBtn = styled . img `
245- width: 24px;
246- height: auto;
247- cursor: pointer;
246+ width: 24px;
247+ height: auto;
248+ cursor: pointer;
248249` ;
249250
250251const CountContainer = styled . div `
251- border-radius: 8px;
252- background-color: ${ ( props : any ) => props . theme . colors . gray900 } ;
253- display: flex;
254- flex-direction: column;
255- padding: 14px 20px;
256- gap: 10px;
257- margin-top: 24px;
258- margin-bottom: 12px;
252+ border-radius: 8px;
253+ background-color: ${ ( props : any ) => props . theme . colors . gray900 } ;
254+ display: flex;
255+ flex-direction: column;
256+ padding: 14px 20px;
257+ gap: 10px;
258+ margin-top: 24px;
259+ margin-bottom: 12px;
259260` ;
260261
261262const CountRaw = styled . div `
262- display: flex;
263- flex-direction: row;
264- justify-content: space-between;
263+ display: flex;
264+ flex-direction: row;
265+ justify-content: space-between;
265266` ;
266267
267268const CountTitle = styled . div `
268- ${ ( props : any ) => props . theme . fonts . body09 } ;
269- color: ${ ( props : any ) => props . theme . colors . gray300 } ;
269+ ${ ( props : any ) => props . theme . fonts . body09 } ;
270+ color: ${ ( props : any ) => props . theme . colors . gray300 } ;
270271` ;
271272
272273const CountValue = styled . div `
273- ${ ( props : any ) => props . theme . fonts . body08 } ;
274- color: ${ ( props : any ) => props . theme . colors . white } ;
274+ ${ ( props : any ) => props . theme . fonts . body08 } ;
275+ color: ${ ( props : any ) => props . theme . colors . white } ;
275276` ;
276277
277278const Line = styled . hr `
278- height: 2px;
279- background-color: ${ ( props ) => props . theme . colors . gray800 } ;
280- border: none;
281- margin: 0;
282- margin-top : 11px;
279+ height: 2px;
280+ background-color: ${ ( props ) => props . theme . colors . gray800 } ;
281+ border: none;
282+ margin: 0;
283+ margin-top: 11px;
283284` ;
284285
285286const SettingWrapper = styled . div `
286- display: flex;
287- flex-direction: column;
288- width: 100%;
287+ display: flex;
288+ flex-direction: column;
289+ width: 100%;
289290` ;
290291
291292const SettingTitle = styled . div `
292- ${ ( props : any ) => props . theme . fonts . body07 } ;
293- color: ${ ( props : any ) => props . theme . colors . gray100 } ;
294- margin-bottom: 10px;
293+ ${ ( props : any ) => props . theme . fonts . body07 } ;
294+ color: ${ ( props : any ) => props . theme . colors . gray100 } ;
295+ margin-bottom: 10px;
295296` ;
296297
297298const MenuTitle = styled . div `
298- ${ ( props : any ) => props . theme . fonts . body06 } ;
299- color: ${ ( props : any ) => props . theme . colors . white } ;
299+ ${ ( props : any ) => props . theme . fonts . body06 } ;
300+ color: ${ ( props : any ) => props . theme . colors . white } ;
300301` ;
301302
302303const MenuSubTitle = styled . div `
303- ${ ( props : any ) => props . theme . fonts . caption04 } ;
304- color: ${ ( props : any ) => props . theme . colors . gray500 } ;
304+ ${ ( props : any ) => props . theme . fonts . caption04 } ;
305+ color: ${ ( props : any ) => props . theme . colors . gray500 } ;
305306` ;
306307
307308const MenuWrapper = styled . div `
308- display: flex;
309- flex-direction: row;
310- justify-content: space-between;
311- padding: 10px 0;
312- cursor: pointer;
309+ display: flex;
310+ flex-direction: row;
311+ justify-content: space-between;
312+ padding: 10px 0;
313+ cursor: pointer;
313314` ;
314315
315316const SettingContainer = styled . div `
316- padding: 10px 0;
317+ padding: 10px 0;
317318` ;
318319
319320const Wrapper = styled . div `
320- display: flex;
321- width: 100%;
322- padding: 24px;
321+ display: flex;
322+ width: 100%;
323+ padding: 24px;
323324` ;
0 commit comments