|
@@ -22,7 +22,7 @@ export interface SlotSnapshot {
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export default function CitySlotCard({ data }: { data: SlotSnapshot }) {
|
|
|
|
|
|
|
+export default function CitySlotCard({ data, isBlacklisted = false }: { data: SlotSnapshot; isBlacklisted?: boolean }) {
|
|
|
const { t, lang } = useLanguage();
|
|
const { t, lang } = useLanguage();
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
|
|
|
@@ -121,7 +121,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot }) {
|
|
|
const slotCity = data.city;
|
|
const slotCity = data.city;
|
|
|
const slotCountry = data.country;
|
|
const slotCountry = data.country;
|
|
|
const slotVisaType = data.visa_type;
|
|
const slotVisaType = data.visa_type;
|
|
|
- const canSubscribe = Boolean(slotRoutingKey);
|
|
|
|
|
|
|
+ const canSubscribe = Boolean(slotRoutingKey) && !isBlacklisted;
|
|
|
|
|
|
|
|
const handleSubscribe = () => {
|
|
const handleSubscribe = () => {
|
|
|
if (!slotRoutingKey) return;
|
|
if (!slotRoutingKey) return;
|
|
@@ -258,7 +258,7 @@ export default function CitySlotCard({ data }: { data: SlotSnapshot }) {
|
|
|
>
|
|
>
|
|
|
{t('slots.subscribe_notification') || 'Subscribe for updates'}
|
|
{t('slots.subscribe_notification') || 'Subscribe for updates'}
|
|
|
</button>
|
|
</button>
|
|
|
- {!canSubscribe && (
|
|
|
|
|
|
|
+ {!canSubscribe && !isBlacklisted && (
|
|
|
<p className="text-xs text-slate-400 mt-1">
|
|
<p className="text-xs text-slate-400 mt-1">
|
|
|
{t('slots.subscribe_unavailable') || 'Routing info unavailable'}
|
|
{t('slots.subscribe_unavailable') || 'Routing info unavailable'}
|
|
|
</p>
|
|
</p>
|