forked from magonysandormate/PeePal
Kereső komponens formázva
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
7
frontend/peepal_react/src/axiosConfig.js
Normal file
7
frontend/peepal_react/src/axiosConfig.js
Normal 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;
|
||||
Reference in New Issue
Block a user