+
diff --git a/src/pages/reservation/components/TossPayments/index.css.ts b/src/pages/reservation/components/TossPayments/index.css.ts
index 1dfd5bc4..90e00a04 100644
--- a/src/pages/reservation/components/TossPayments/index.css.ts
+++ b/src/pages/reservation/components/TossPayments/index.css.ts
@@ -10,6 +10,11 @@ export const w100 = style({
width: '100%',
});
+export const buttonCustomStyle = style({
+ width: '100%',
+ padding: '0 3rem',
+});
+
export const h100 = style({
height: '100%',
});
@@ -69,6 +74,14 @@ export const confirmLoading = style({
justifyContent: 'space-between',
});
+export const flexCustomStyle = style({
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ width: '100%',
+ height: '100vh',
+});
+
export const confirmSuccess = style({
display: 'none',
marginTop: '7.2rem',
diff --git a/src/pages/search/components/Calendar/index.css.ts b/src/pages/search/components/Calendar/index.css.ts
index a3401622..daed8226 100644
--- a/src/pages/search/components/Calendar/index.css.ts
+++ b/src/pages/search/components/Calendar/index.css.ts
@@ -8,6 +8,7 @@ globalStyle('.react-calendar', {
flexDirection: 'column',
alignItems: 'center',
marginBottom: '0.9rem',
+ padding: '0 2rem',
});
globalStyle('.react-calendar__navigation', {
diff --git a/src/pages/search/components/SearchBar/index.tsx b/src/pages/search/components/SearchBar/index.tsx
index 31961517..036d4bb6 100644
--- a/src/pages/search/components/SearchBar/index.tsx
+++ b/src/pages/search/components/SearchBar/index.tsx
@@ -16,6 +16,12 @@ const SearchBar = forwardRef(
handleSearchChange(event.target.value);
};
+ const handleKeyDown = (event: React.KeyboardEvent) => {
+ if (event.key === 'Enter') {
+ handleSearchIconClick();
+ }
+ };
+
return (
@@ -25,6 +31,7 @@ const SearchBar = forwardRef(
value={searchValue}
placeholder="μ₯λ₯΄λ λμ λ€μμ κ²μν΄ λ³΄μΈμ"
onChange={handleInputChange}
+ onKeyDown={handleKeyDown}
/>
handleSearchChange('')} />
diff --git a/src/routes/router.tsx b/src/routes/router.tsx
index 7389741b..b03273e3 100644
--- a/src/routes/router.tsx
+++ b/src/routes/router.tsx
@@ -1,25 +1,27 @@
+import { lazy } from 'react';
import { createBrowserRouter } from 'react-router-dom';
import { LoginCallback } from '@/pages/auth';
-import Class from '@/pages/class';
-import Dancer from '@/pages/dancer';
-import Error from '@/pages/error';
-import Home from '@/pages/home';
import ClassRegisterCompletion from '@/pages/instructor/ClassRegisterCompletion';
-import ClassDetail from '@/pages/instructor/classDetail';
-import ClassList from '@/pages/instructor/classList';
-import ClassRegister from '@/pages/instructor/classRegister';
-import InstructorRegister from '@/pages/instructorRegister';
-import Login from '@/pages/login';
-import MyPageReservation from '@/pages/mypage/mypageReservation';
-import MyPageReservationDetail from '@/pages/mypage/mypageReservationDetail';
-import Onboarding from '@/pages/onboarding';
-import Reservation from '@/pages/reservation';
import { CheckoutPage } from '@/pages/reservation/components/TossPayments/CheckOut/CheckOut';
import { FailPage } from '@/pages/reservation/components/TossPayments/Fail/Fail';
import { SuccessPage } from '@/pages/reservation/components/TossPayments/Success/Success';
-import Search from '@/pages/search';
import { ROUTES_CONFIG } from './routesConfig';
+const Home = lazy(() => import('@/pages/home'));
+const Login = lazy(() => import('@/pages/login'));
+const Onboarding = lazy(() => import('@/pages/onboarding'));
+const Search = lazy(() => import('@/pages/search'));
+const Class = lazy(() => import('@/pages/class'));
+const Dancer = lazy(() => import('@/pages/dancer'));
+const Reservation = lazy(() => import('@/pages/reservation'));
+const MyPageReservation = lazy(() => import('@/pages/mypage/mypageReservation'));
+const MyPageReservationDetail = lazy(() => import('@/pages/mypage/mypageReservationDetail'));
+const ClassRegister = lazy(() => import('@/pages/instructor/classRegister'));
+const InstructorRegister = lazy(() => import('@/pages/instructorRegister'));
+const ClassDetail = lazy(() => import('@/pages/instructor/classDetail'));
+const ClassList = lazy(() => import('@/pages/instructor/classList'));
+const Error = lazy(() => import('@/pages/error'));
+
export const router = createBrowserRouter([
{
path: ROUTES_CONFIG.home.path,
@@ -94,7 +96,7 @@ export const router = createBrowserRouter([
element: ,
},
{
- path: ROUTES_CONFIG.error.path,
+ path: '*',
element: ,
},
]);