From f5e589886b1284a3d61870e424a6bb7001f0c01f Mon Sep 17 00:00:00 2001 From: Mohammad Khalilzadeh Date: Sat, 24 Aug 2024 10:11:13 +0330 Subject: [PATCH] adding the type number --- Client/src/Components/Inputs/Field/index.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx index 0b2fe56fe..f44201e3f 100644 --- a/Client/src/Components/Inputs/Field/index.jsx +++ b/Client/src/Components/Inputs/Field/index.jsx @@ -177,7 +177,14 @@ const Field = forwardRef( ); Field.propTypes = { - type: PropTypes.oneOf(["text", "password", "url", "email", "description"]), + type: PropTypes.oneOf([ + "text", + "password", + "url", + "email", + "description", + "number", + ]), id: PropTypes.string.isRequired, label: PropTypes.string, https: PropTypes.bool,