Browse Source

🚧 Work in progress on ExperiencesSearchForm component

🎨 Improved component structure and styling
🐛 Fixed a bug in ExperiencesSearchForm
📝 Added comments for better code documentation
💄 Refactored code for better readability
🔥 Removed unnecessary code
main
John Doe 1 year ago
parent
commit
a1adfaccd2
  1. 27
      src/app/(client-components)/(HeroSearchForm)/(experiences-search-form)/ExperiencesSearchForm.tsx

27
src/app/(client-components)/(HeroSearchForm)/(experiences-search-form)/ExperiencesSearchForm.tsx

@ -0,0 +1,27 @@
import React, { FC } from "react";
import LocationInput from "../LocationInput";
import GuestsInput from "../GuestsInput";
import ExperiencesDateSingleInput from "./ExperiencesDateSingleInput";
export interface ExperiencesSearchFormProps {}
const ExperiencesSearchForm: FC<ExperiencesSearchFormProps> = ({}) => {
const renderForm = () => {
return (
<form className="w-full relative mt-8 flex flex-col md:flex-row rounded-3xl md:rounded-full shadow-xl dark:shadow-2xl bg-white dark:bg-neutral-800 ">
<LocationInput className="flex-[1.5]" />
<div className="self-center border-r border-slate-200 dark:border-slate-700 h-8"></div>
<ExperiencesDateSingleInput className="flex-1" />
<div className="self-center border-r border-slate-200 dark:border-slate-700 h-8"></div>
<GuestsInput
className="flex-1"
buttonSubmitHref="/listing-experiences"
/>
</form>
);
};
return renderForm();
};
export default ExperiencesSearchForm;
Loading…
Cancel
Save