deleted some commentes

This commit is contained in:
@jcarymuhammedow
2026-06-04 18:00:44 +05:00
parent 84c5ff4153
commit e550eff090
5 changed files with 63 additions and 78 deletions

View File

@@ -245,7 +245,6 @@ function FilterDropdown({
<div key={field.id} className="space-y-1">
<label className="block text-[11px] font-semibold text-muted-foreground uppercase tracking-wider">{field.label}</label>
{/* MonthSelect ile aynı pattern: manuel span + sentinel */}
<div className="flex items-center gap-1">
<Select value={current || "__all__"} onValueChange={(val) => onFilterChange(field.id, val === "__all__" ? "" : val)}>
<SelectTrigger
@@ -254,7 +253,6 @@ function FilterDropdown({
isFieldActive ? "border-primary text-primary [&>svg:last-child]:text-primary" : "text-muted-foreground",
)}
>
{/* SelectValue kullanmıyoruz — MonthSelect gibi manuel */}
<span className="flex-1 text-left truncate">
{isFieldActive ? field.options.find((o) => o.value === current)?.label : "—"}
</span>
@@ -271,7 +269,6 @@ function FilterDropdown({
</SelectContent>
</Select>
{/* Field bazlı temizle — MonthSelect'teki X butonu ile aynı */}
{isFieldActive && (
<button
type="button"
@@ -306,7 +303,6 @@ function FilterDropdown({
</div>
)}
{/* Reset — tüm filtreler, sadece aktif filter varsa göster */}
{hasActive && (
<button
type="button"

View File

@@ -534,7 +534,6 @@ function FileInput({
const [dragOver, setDragOver] = useState(false);
const [preview, setPreview] = useState<string | null>(null);
// fileValue prop'u değişince preview'i güncelle + memory leak önle
useEffect(() => {
let url: string | null = null;
let timer: ReturnType<typeof setTimeout>;
@@ -552,7 +551,6 @@ function FileInput({
};
}, [fileValue]);
// handleFile sadece onFileChange'i çağırıyor — preview useEffect hallediyor
const handleFile = (file: File | null) => {
onFileChange?.(file);
};