add Middleware + fixed all pages and fixed add propertise
This commit is contained in:
@ -7,6 +7,7 @@ import toast, { Toaster } from 'react-hot-toast';
|
||||
import { getCustomerRatings } from '../utils/ratings';
|
||||
import AuthService from '../services/AuthService';
|
||||
import StarRating from '../components/ratings/StarRating';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
const RATING_FIELDS = [
|
||||
{ key: 'cleanRating', label: 'ratings.cleanliness' },
|
||||
@ -99,13 +100,7 @@ export default function MyRatesPage() {
|
||||
}
|
||||
}
|
||||
|
||||
if (loading) {
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50 flex items-center justify-center" dir="rtl">
|
||||
<Loader2 className="w-12 h-12 text-amber-500 animate-spin" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
const overall = calcOverall(ratings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user