Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion back/src/node-mailer/templates/reserva.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ button.es-button {
<tbody>
<tr>
<td align="center" class="esd-block-text es-p10t es-p10b" esd-links-color="#EB9A32">
<p style="color: #ffffff;">Preguntas? Complete el formulario en nuestra <a target="_blank" style="color: #eb9a32;" href="https://Relux/contact/form">pagina de contacto</a> y nos comunicaremos con usted lo antes posible.&nbsp;</p>
<p style="color: #ffffff;">Preguntas? Complete el formulario en nuestra <a target="_blank" style="color: #eb9a32;" href="https://coworking-pf.vercel.app/contact">pagina de contacto</a> y nos comunicaremos con usted lo antes posible.&nbsp;</p>
</td>
</tr>
</tbody>
Expand Down
2 changes: 2 additions & 0 deletions front/src/app/(auth)/_components/GoogleButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ interface IProps {
const GoogleButton = ({ redirectRoute, text, disabled }: IProps) => {
const clientId = process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID;
const redirectUri = process.env.NEXT_PUBLIC_DOMAIN + redirectRoute;
console.log(process.env.NEXT_PUBLIC_DOMAIN);
console.log(redirectUri);
const scope =
"https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email";
const responseType = "token";
Expand Down
33 changes: 17 additions & 16 deletions front/src/app/_page/_components/Searchbar/Searchbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ const Searchbar = () => {
}
}, []);

const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const handleInputChange = async (event: React.ChangeEvent<HTMLInputElement>) => {
const inputValue = event.target.value;
setCountry(inputValue);
await fetchOffices(country);
setShowDropdown(true); // Mostrar el dropdown al hacer clic en Buscar
};

const fetchOffices = async (query: string) => {
Expand Down Expand Up @@ -99,7 +101,7 @@ const Searchbar = () => {

{showDropdown && (
<div className="absolute top-14 z-10 shadow-lg" ref={dropdownRef}>
<ScrollArea className="bg-background border-primary border rounded-md p-4 h-[15rem]">
<ScrollArea className="bg-[#111111] border-primary border rounded-md p-1 h-[15rem]">
{offices.length > 0 ? (
<ul>
{offices.map((office, index) => (
Expand All @@ -124,21 +126,20 @@ const Searchbar = () => {
</ul>
) : (
<div className="w-[30rem]">
<div className="p-3 flex justify-center">
<Paragraph variant="secondary">
No se encontraron oficinas en tu ubicación. <br />
<Link href={`/rooms`} className="flex justify-center mt-5">
<Paragraph
variant="primary"
className="!text-primary border-b-primary border-b"
>
Ver todas las oficinas
</Paragraph>
</Link>
</Paragraph>
</div>
<div></div>
<div className="p-3 flex justify-center">
<Paragraph variant="secondary">
No se encontraron oficinas en tu ubicación. <br />
<Link href={`/rooms`} className="flex justify-center mt-5">
<Paragraph
variant="primary"
className="!text-primary border-b-primary border-b"
>
Ver todas las oficinas
</Paragraph>
</Link>
</Paragraph>
</div>
</div>
)}
</ScrollArea>
</div>
Expand Down