- 정말 로그아웃 하시겠습니까?
+ 정말 로그아웃 하시겠습니까?
{
popupClose();
}}
>
-
+
취소
-
+
{
- popupClose();
localStorage.removeItem('access_token');
localStorage.removeItem('refresh_token');
+ popupClose();
navigate('/');
}}
>
-
+
확인
-
+
diff --git a/src/pages/profile/UserEditPage/style.ts b/src/pages/profile/UserEditPage/style.ts
index 4bb26cbc..a63a9b3c 100644
--- a/src/pages/profile/UserEditPage/style.ts
+++ b/src/pages/profile/UserEditPage/style.ts
@@ -124,39 +124,26 @@ export const ExitButton = styled.button`
export const PopupContainer = styled.div`
width: 100%;
- padding-top: 20px;
+ padding: 24px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
- gap: 30px;
+ gap: 20px;
div {
width: calc(100% + 40px);
margin: 0 -20px -20px;
- border-radius: 0 0 15px 15px;
overflow: hidden;
display: flex;
- border-top: 1px solid ${({ theme }) => theme.gray04};
+ justify-content: space-between;
}
`;
-export const PopupConfirmButton = styled.button<{
- type: 'secondary' | 'primary';
-}>`
- cursor: pointer;
- flex: 1 1 100%;
- padding: 14px;
- border: 0;
- color: ${({ theme, type }) => (type === 'secondary' ? theme.gray02 : theme.main)};
- background-color: transparent;
-
- &:last-of-type {
- border-left: 1px solid ${({ theme }) => theme.gray04};
- }
-
- &:hover {
- background-color: ${({ theme }) => theme.gray06};
- }
+export const PopupConfirmButton = styled.button`
+ width: calc(50% - 10px);
+ padding: 10px 16px;
+ border-radius: 8px;
+ border: none;
`;
diff --git a/vite.config.ts b/vite.config.ts
index 04e410e5..6523e2bc 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -2,6 +2,7 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import svgr from 'vite-plugin-svgr';
import { VitePWA } from 'vite-plugin-pwa';
+import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({
build: {
@@ -64,5 +65,6 @@ export default defineConfig({
},
},
}),
+ tsconfigPaths(),
],
});
\ No newline at end of file