add Middleware + fixed all pages and fixed add propertise
This commit is contained in:
@ -431,6 +431,7 @@ import {
|
||||
payDeposit,
|
||||
} from "../utils/api";
|
||||
import { addPropertyRating } from "../utils/ratings";
|
||||
import Loading from "../loading";
|
||||
|
||||
const API_BASE =
|
||||
process.env.NEXT_PUBLIC_API_URL || "https://45.93.137.91.nip.io/api";
|
||||
@ -1713,12 +1714,11 @@ export default function UserReservationsPage() {
|
||||
}
|
||||
};
|
||||
|
||||
if (loading)
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 flex items-center justify-center">
|
||||
<Loader2 className="w-12 h-12 text-amber-500 animate-spin" />
|
||||
</div>
|
||||
<Loading/>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 py-8" dir="rtl">
|
||||
|
||||
Reference in New Issue
Block a user