|
|
@@ -14,6 +14,7 @@ import {
|
|
|
Tag,
|
|
|
message,
|
|
|
} from 'antd';
|
|
|
+import { ReloadOutlined } from '@ant-design/icons';
|
|
|
import dayjs from 'dayjs';
|
|
|
import type { Dayjs } from 'dayjs';
|
|
|
|
|
|
@@ -369,7 +370,7 @@ export default function ClientFormModal({
|
|
|
style={{ flex: 1 }}
|
|
|
onChange={(e) => update('email', e.target.value)}
|
|
|
/>
|
|
|
- <Button onClick={() => update('email', RandomUtil.randomLowerAndNum(12))}>↻</Button>
|
|
|
+ <Button icon={<ReloadOutlined />} onClick={() => update('email', RandomUtil.randomLowerAndNum(12))} />
|
|
|
</Space.Compact>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
@@ -377,7 +378,7 @@ export default function ClientFormModal({
|
|
|
<Form.Item label={t('pages.clients.subId')}>
|
|
|
<Space.Compact style={{ display: 'flex' }}>
|
|
|
<Input value={form.subId} style={{ flex: 1 }} onChange={(e) => update('subId', e.target.value)} />
|
|
|
- <Button onClick={() => update('subId', RandomUtil.randomLowerAndNum(16))}>↻</Button>
|
|
|
+ <Button icon={<ReloadOutlined />} onClick={() => update('subId', RandomUtil.randomLowerAndNum(16))} />
|
|
|
</Space.Compact>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
@@ -388,7 +389,7 @@ export default function ClientFormModal({
|
|
|
<Form.Item label={t('pages.clients.hysteriaAuth')}>
|
|
|
<Space.Compact style={{ display: 'flex' }}>
|
|
|
<Input value={form.auth} style={{ flex: 1 }} onChange={(e) => update('auth', e.target.value)} />
|
|
|
- <Button onClick={() => update('auth', RandomUtil.randomLowerAndNum(16))}>↻</Button>
|
|
|
+ <Button icon={<ReloadOutlined />} onClick={() => update('auth', RandomUtil.randomLowerAndNum(16))} />
|
|
|
</Space.Compact>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
@@ -396,7 +397,7 @@ export default function ClientFormModal({
|
|
|
<Form.Item label={t('pages.clients.password')}>
|
|
|
<Space.Compact style={{ display: 'flex' }}>
|
|
|
<Input value={form.password} style={{ flex: 1 }} onChange={(e) => update('password', e.target.value)} />
|
|
|
- <Button onClick={() => update('password', RandomUtil.randomLowerAndNum(16))}>↻</Button>
|
|
|
+ <Button icon={<ReloadOutlined />} onClick={() => update('password', RandomUtil.randomLowerAndNum(16))} />
|
|
|
</Space.Compact>
|
|
|
</Form.Item>
|
|
|
</Col>
|
|
|
@@ -407,7 +408,7 @@ export default function ClientFormModal({
|
|
|
<Form.Item label={t('pages.clients.uuid')}>
|
|
|
<Space.Compact style={{ display: 'flex' }}>
|
|
|
<Input value={form.uuid} style={{ flex: 1 }} onChange={(e) => update('uuid', e.target.value)} />
|
|
|
- <Button onClick={() => update('uuid', RandomUtil.randomUUID())}>↻</Button>
|
|
|
+ <Button icon={<ReloadOutlined />} onClick={() => update('uuid', RandomUtil.randomUUID())} />
|
|
|
</Space.Compact>
|
|
|
</Form.Item>
|
|
|
</Col>
|