Skip to content

Commit

Permalink
refactor: 로그인 페이지 구조 변경 및 불필요한 templates 레거시 코드 삭제 (#230) (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
suwonthugger authored and Ivoryeee committed Dec 27, 2024
1 parent b67ca00 commit d3708d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/components/templates/LoginPageWrapper/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { useLottieAnimation } from '@/shared/hooks/useLottieAnimation';
import LottieData from '@/shared/assets/lotties/morib_logo_motion.json';
import GoogleLoginIcon from '@/shared/assets/svgs/google_login.svg?react';

import LoginPageWrapper from '@/components/templates/LoginPageWrapper';

const defaultOptions = {
autoplay: true,
loop: false,
Expand All @@ -31,7 +29,7 @@ const LoginPage = () => {
};

return (
<LoginPageWrapper>
<div className="flex h-screen items-center justify-center bg-login-bg bg-cover">
<div className="h-[37rem] w-[60rem]">
<Lottie
ref={lottieRef}
Expand All @@ -55,7 +53,7 @@ const LoginPage = () => {
<GoogleLoginIcon />
</button>
</div>
</LoginPageWrapper>
</div>
);
};
export default LoginPage;
2 changes: 1 addition & 1 deletion src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Layout from '@/shared/layout/Layout';
import RedirectPage from '../pages/RedirectPage';
import { ROUTES_CONFIG } from './routesConfig';

const LoginPage = lazy(() => import('@/pages/LoginPage'));
const LoginPage = lazy(() => import('@/pages/LoginPage/LoginPage'));
const HomePage = lazy(() => import('@/pages/HomePage/HomePage'));
const TimerPage = lazy(() => import('@/pages/TimerPage/TimerPage'));
const MoribSetPage = lazy(() => import('@/pages/MoribSetPage/MoribSetPage'));
Expand Down

0 comments on commit d3708d8

Please sign in to comment.