diff --git a/src/App.js b/src/App.js index cba1912..bb77057 100644 --- a/src/App.js +++ b/src/App.js @@ -123,6 +123,7 @@ function App() { } /> } /> } /> + diff --git a/src/components/PeopleInput.js b/src/components/PeopleInput.js new file mode 100644 index 0000000..7909f78 --- /dev/null +++ b/src/components/PeopleInput.js @@ -0,0 +1,18 @@ +import { CONSTANTS } from '../constants/bookingIndex'; + +// 공통으로 사용되는 인풋 컴포넌트들 +export const PeopleInput = ({ bookingData, handleInputChange }) => ( +
+ + +
+ ); + \ No newline at end of file diff --git a/src/components/RenderStepIndicator.js b/src/components/RenderStepIndicator.js new file mode 100644 index 0000000..02519c5 --- /dev/null +++ b/src/components/RenderStepIndicator.js @@ -0,0 +1,24 @@ +import { CONSTANTS } from '../constants/bookingIndex.js'; + +export const RenderStepIndicator = ({step}) => ( +
+
+ {Array.from({ length: CONSTANTS.STEPS }, (_, i) => i + 1).map((stepNum) => ( +
= stepNum ? 'bg-blue-500 text-white' : 'bg-gray-200' + }`} + > + {stepNum} +
+ ))} +
+
+
+
+
+); diff --git a/src/components/RequirmentsInput.js b/src/components/RequirmentsInput.js new file mode 100644 index 0000000..f95c6e3 --- /dev/null +++ b/src/components/RequirmentsInput.js @@ -0,0 +1,12 @@ +export const RequirementsInput = ({ bookingData, handleInputChange }) => ( +
+ +