File tree Expand file tree Collapse file tree 6 files changed +71
-5
lines changed Expand file tree Collapse file tree 6 files changed +71
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { FC , ReactNode } from 'react' ;
2
+ import HistoryBackButton from '@/components/common/HistoryBackButton' ;
3
+
4
+ interface Props {
5
+ children : ReactNode ;
6
+ title : string ;
7
+ }
8
+
9
+ const PolicyShowLayout : FC < Props > = ( { children, title } ) => {
10
+ return (
11
+ < main className = { 'relative m-auto h-screen w-fit p-8' } >
12
+ < HistoryBackButton />
13
+ < h2 className = "my-5 text-xl font-semibold" > { title } </ h2 >
14
+ { /* <div className="card h-5/6 max-w-5xl bg-white">{children}</div> */ }
15
+ < div className = "card h-3/4 max-w-5xl bg-white" > { children } </ div >
16
+ </ main >
17
+ ) ;
18
+ } ;
19
+
20
+ export default PolicyShowLayout ;
Original file line number Diff line number Diff line change
1
+ import { FC , ReactNode } from 'react' ;
2
+ import HistoryBackButton from '@/components/common/HistoryBackButton' ;
3
+
4
+ interface Props {
5
+ children : ReactNode ;
6
+ title : string ;
7
+ }
8
+
9
+ const UseTermsShowLayout : FC < Props > = ( { children, title } ) => {
10
+ return (
11
+ < main className = { 'relative m-auto h-screen w-fit p-8' } >
12
+ < HistoryBackButton />
13
+ < h2 className = "my-5 text-xl font-semibold" > { title } </ h2 >
14
+ { /* <div className="card h-5/6 max-w-5xl bg-white">{children}</div> */ }
15
+ < div className = "card h-3/4 max-w-5xl bg-white" > { children } </ div >
16
+ </ main >
17
+ ) ;
18
+ } ;
19
+
20
+ export default UseTermsShowLayout ;
Original file line number Diff line number Diff line change @@ -71,11 +71,11 @@ const router = createBrowserRouter([
71
71
children : [
72
72
{
73
73
path : 'personalInfo' ,
74
- element : < Policy . PersonalInfoPage /> ,
74
+ element : < Policy . PersonalInfoShowPage /> ,
75
75
} ,
76
76
{
77
77
path : 'usecondition' ,
78
- element : < Policy . UseConditionPage /> ,
78
+ element : < Policy . UseConditionShowPage /> ,
79
79
} ,
80
80
] ,
81
81
} ,
Original file line number Diff line number Diff line change
1
+ import { FC } from 'react' ;
2
+ import PolicyShowLayout from '@/layouts/PolicyShowLayout' ;
3
+ import PolicyPersonalInfo from '../../components/Policy/PolicyPersonalInfo' ;
4
+
5
+ const PersonalInfoShowPage : FC = ( ) => {
6
+ return (
7
+ < PolicyShowLayout title = "개인정보 처리방침" >
8
+ < PolicyPersonalInfo />
9
+ </ PolicyShowLayout >
10
+ ) ;
11
+ } ;
12
+
13
+ export default PersonalInfoShowPage ;
Original file line number Diff line number Diff line change
1
+ import { FC } from 'react' ;
2
+ import PolicyUseCondition from '../../components/Policy/PolicyUseCondition' ;
3
+ import UseTermsShowLayout from '@/layouts/UseTermsShowLayout' ;
4
+
5
+ const UseConditionShowPage : FC = ( ) => {
6
+ return (
7
+ < UseTermsShowLayout title = "전자상거래 표준약관" >
8
+ < PolicyUseCondition />
9
+ </ UseTermsShowLayout >
10
+ ) ;
11
+ } ;
12
+
13
+ export default UseConditionShowPage ;
Original file line number Diff line number Diff line change 1
- import PersonalInfoPage from './PersonalInfoPage ' ;
2
- import UseConditionPage from './UseConditionPage ' ;
1
+ import PersonalInfoShowPage from './PersonalInfoShowPage ' ;
2
+ import UseConditionShowPage from './UseConditionShowPage ' ;
3
3
4
- export { PersonalInfoPage , UseConditionPage } ;
4
+ export { PersonalInfoShowPage , UseConditionShowPage } ;
You can’t perform that action at this time.
0 commit comments