mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-24 02:38:38 +00:00
🎨 chore(web): apply ESLint and Prettier auto-fixes (baseline)
- Ran: bun run eslint:fix && bun run lint:fix - Inserted AGPL license header via eslint-plugin-header - Enforced no-multiple-empty-lines and other lint rules - Formatted code using Prettier v3 (@so1ve/prettier-config) - No functional changes; formatting-only baseline across JS/JSX files
This commit is contained in:
@@ -26,7 +26,7 @@ const EnableDisableUserModal = ({
|
||||
onConfirm,
|
||||
user,
|
||||
action,
|
||||
t
|
||||
t,
|
||||
}) => {
|
||||
const isDisable = action === 'disable';
|
||||
|
||||
@@ -36,11 +36,11 @@ const EnableDisableUserModal = ({
|
||||
visible={visible}
|
||||
onCancel={onCancel}
|
||||
onOk={onConfirm}
|
||||
type="warning"
|
||||
type='warning'
|
||||
>
|
||||
{isDisable ? t('此操作将禁用用户账户') : t('此操作将启用用户账户')}
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
||||
export default EnableDisableUserModal;
|
||||
export default EnableDisableUserModal;
|
||||
|
||||
Reference in New Issue
Block a user