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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user