fix for edit user tab

This commit is contained in:
Ishaan Jaff 2025-04-12 18:06:01 -07:00
parent 2a55ceae38
commit ecaf8fb869

View file

@ -18,6 +18,7 @@ import {
Input, Input,
Select as Select2, Select as Select2,
message, message,
InputNumber,
} from "antd"; } from "antd";
import NumericalInput from "./shared/numerical_input"; import NumericalInput from "./shared/numerical_input";
@ -113,7 +114,7 @@ const EditUserModal: React.FC<EditUserModalProps> = ({ visible, possibleUIRoles,
tooltip="(float) - Spend of all LLM calls completed by this user" tooltip="(float) - Spend of all LLM calls completed by this user"
help="Across all keys (including keys with team_id)." help="Across all keys (including keys with team_id)."
> >
<NumericalInput min={0} step={1} /> <InputNumber min={0} step={1} />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
@ -122,7 +123,7 @@ const EditUserModal: React.FC<EditUserModalProps> = ({ visible, possibleUIRoles,
tooltip="(float) - Maximum budget of this user" tooltip="(float) - Maximum budget of this user"
help="Maximum budget of this user." help="Maximum budget of this user."
> >
<NumericalInput min={0} step={1} /> <NumericalInput min={0} step={0.01} />
</Form.Item> </Form.Item>
<div style={{ textAlign: "right", marginTop: "10px" }}> <div style={{ textAlign: "right", marginTop: "10px" }}>