feat: 30 günlük havuz referansı (kalıcı erime) + 25 sektör, çoklu sektör seçimi ve sunucudan gelen tek kaynaklı liste
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { useApp } from '../../context/AppContext';
|
||||
import { getToken } from '../../services/auth';
|
||||
import { SECTORS_LIST } from '../../data/constants';
|
||||
|
||||
import { BellRing, Plus, Trash2, Loader2, AlertTriangle, Info, Globe, Sparkles, ChevronDown, ChevronUp, X } from 'lucide-react';
|
||||
|
||||
/**
|
||||
@@ -10,7 +10,7 @@ import { BellRing, Plus, Trash2, Loader2, AlertTriangle, Info, Globe, Sparkles,
|
||||
* isteğe bağlıdır (varsayılan: tüm Türkiye).
|
||||
*/
|
||||
export const NotifySubscriptions = () => {
|
||||
const { authUser, favoriteKurumlar, userProfile } = useApp();
|
||||
const { authUser, favoriteKurumlar, userProfile, sektorListesi } = useApp();
|
||||
|
||||
const [abonelikler, setAbonelikler] = useState(null);
|
||||
const [busy, setBusy] = useState(false);
|
||||
@@ -212,7 +212,7 @@ export const NotifySubscriptions = () => {
|
||||
|
||||
<p className="text-[10px] text-slate-400 pt-1">Hazır sektörler:</p>
|
||||
<div className="flex flex-wrap gap-1.5">
|
||||
{SECTORS_LIST.map((s) => (
|
||||
{sektorListesi.map((s) => (
|
||||
<button key={s} onClick={() => konuEkle(s)}
|
||||
className="text-[11px] bg-slate-100 hover:bg-slate-200 text-slate-700 px-2 py-1 rounded-md">
|
||||
+ {s}
|
||||
|
||||
Reference in New Issue
Block a user