refactor(ui): unify remaining native selects (claims/sms/wallet/secretaries)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
hamed
2026-06-23 21:06:45 +03:30
co-authored by Claude Opus 4.8
parent 0bc1b4a2e9
commit f41314a3ad
4 changed files with 36 additions and 41 deletions
+9 -10
View File
@@ -14,6 +14,7 @@ import StatusBadge from '../components/ui/StatusBadge';
import Pagination from '../components/ui/Pagination';
import ConfirmDialog from '../components/ui/ConfirmDialog';
import Modal from '../components/ui/Modal';
import SearchableSelect from '../components/ui/SearchableSelect';
const templateSchema = z.object({
name: z.string().min(2, 'نام قالب الزامی است'),
@@ -443,16 +444,14 @@ export default function SmsPage() {
{activeTab === 'logs' && (
<>
<div style={{ marginBottom: 12, display: 'flex', justifyContent: 'flex-end' }}>
<select
className="input"
style={{ maxWidth: 200 }}
value={tagFilter}
onChange={(e) => { setTagFilter(e.target.value); setPage(1); }}
>
{TAG_FILTER_OPTIONS.map((o) => (
<option key={o.value} value={o.value}>{o.label}</option>
))}
</select>
<div style={{ width: 200 }}>
<SearchableSelect
options={TAG_FILTER_OPTIONS.map((o) => ({ value: o.value, label: o.label }))}
value={tagFilter}
onChange={(v) => { setTagFilter(v ? String(v) : ''); setPage(1); }}
placeholder="همه تگ‌ها"
/>
</div>
</div>
<DataTable<SmsLog>
columns={logColumns}