Skip to content

Commit

Permalink
ultimos CAMBIOSSSSSSS
Browse files Browse the repository at this point in the history
  • Loading branch information
domenicahoppe committed Nov 7, 2024
1 parent 9c40c12 commit 7666f23
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/GoogleMap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const GoogleMapComponent = ({ onMapLoad, filterType, places }) => {
<Marker
position={userLocation}
title="Tu ubicación actual"
icon="http://maps.google.com/mapfiles/ms/icons/purple-dot.png"
icon="http://maps.google.com/mapfiles/ms/icons/yellow-dot.png"
/>
</GoogleMap>
</LoadScript>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Simbologia.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Simbologia = () => {
// Definimos un objeto para asociar imágenes con títulos
const iconos = [
// { src: deportes, title: 'Deportes' },
{ src: hospedaje, title: 'Hospedaje' },
{ src: hospedaje, title: 'Propiedades' },
{ src: camping, title: 'Camping' },
{ src: servicios, title: 'Servicios y Oficios' },
{ src: eventos, title: 'Eventos' },
Expand Down
9 changes: 7 additions & 2 deletions src/pages/servicios.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ import empanadas from '../assets/Empanadas.jpg';
const Servicios = () => {
const navigate = useNavigate(); // Inicializa useNavigate
const [selectedService, setSelectedService] = useState(null); // Estado para el servicio seleccionado
const { user, isLoading, loginWithRedirect, logout, isAuthenticated } = useAuth0();

const handleIconClick = (serviceName) => {
setSelectedService(serviceName); // Actualiza el servicio seleccionado
};

const handleClick = () => {
navigate('/publicar'); // Navega a /publicar
if (isAuthenticated) {
navigate('/publicar'); // Si está autenticado, navega a /publicar
} else {
loginWithRedirect(); // Si no está autenticado, redirige a iniciar sesión con Auth0
}
};

// Información de cada servicio
const serviceInfo = {
deportes: 'Este servicio ofrece una variedad de actividades deportivas, incluyendo fútbol, baloncesto, y más.',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/users/publicar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import '../../styles/users/publicar.css';

const steps = ['Tipo de publicación', 'Información', 'Imágenes', 'Publicar y Pagar'];
const publicationTypes = [
{ label: 'Hospedaje', value: 'propiedad',
{ label: 'Propiedades', value: 'propiedad',
desc:'Publica tu alojamiento en piezas, cabañas, departamentos, casas y hotelería.'
},
{ label: 'Camping', value: 'camping',
Expand Down

0 comments on commit 7666f23

Please sign in to comment.