|
|
@@ -12,6 +12,18 @@ const LOCATIONS = [
|
|
|
{ code: 'SG', name: 'Singapore', flag: '🇸🇬', cities: ['Singapore'] }
|
|
|
];
|
|
|
|
|
|
+const SUBSCRIPTION_BLACKLIST = [
|
|
|
+ { city: 'Dublin', country: 'France' },
|
|
|
+];
|
|
|
+
|
|
|
+const isBlacklisted = (slot: SlotSnapshot) => {
|
|
|
+ return SUBSCRIPTION_BLACKLIST.some(
|
|
|
+ (item) =>
|
|
|
+ item.city.toLowerCase() === slot.city?.toLowerCase() &&
|
|
|
+ item.country.toLowerCase() === slot.country?.toLowerCase()
|
|
|
+ );
|
|
|
+};
|
|
|
+
|
|
|
export default function SlotDashboardPage() {
|
|
|
const { t } = useLanguage();
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
@@ -211,7 +223,7 @@ export default function SlotDashboardPage() {
|
|
|
) : (
|
|
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
|
|
|
{snapshots.map((slot) => (
|
|
|
- <CitySlotCard key={slot.id} data={slot} />
|
|
|
+ <CitySlotCard key={slot.id} data={slot} isBlacklisted={isBlacklisted(slot)} />
|
|
|
))}
|
|
|
</div>
|
|
|
)}
|
|
|
@@ -219,4 +231,4 @@ export default function SlotDashboardPage() {
|
|
|
</div>
|
|
|
</div>
|
|
|
);
|
|
|
-}
|
|
|
+}
|