Kereső komponens formázva

This commit is contained in:
Sándor Máté Magony
2025-03-28 09:08:22 +01:00
parent c138fc8abc
commit 318014eb57
7 changed files with 347 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ export default function LegkozelebbiMosdo() {
// Render nearest restroom details
if (nearestRestroom) {
return (
<div className="fixed inset-0 flex justify-center items-center">
<div className="bg-white shadow-lg rounded-xl p-6 border border-gray-200 relative">
<h1 className="text-xl font-semibold text-gray-800 mb-3">Legközelebbi mosdó</h1>
<div className="text-gray-600 space-y-2">
@@ -127,6 +128,7 @@ export default function LegkozelebbiMosdo() {
/>
)}
</div>
</div>
);
}

View File

@@ -0,0 +1,7 @@
import axios from 'axios';
// Set the base URL for your Laravel backend
axios.defaults.baseURL = 'http://localhost:8000/api';
axios.defaults.headers.common['Accept'] = 'application/json';
export default axios;