Added label for forms
This commit is contained in:
@@ -50,6 +50,8 @@ const ViewUserPage = () => {
|
|||||||
{/* Input fields */}
|
{/* Input fields */}
|
||||||
<form className={editUserStyle.fields}>
|
<form className={editUserStyle.fields}>
|
||||||
{/* Role and Dropdown */}
|
{/* Role and Dropdown */}
|
||||||
|
<div className={editUserStyle.roleField}>
|
||||||
|
<p>Role</p>
|
||||||
<SelectField
|
<SelectField
|
||||||
label="Select Role"
|
label="Select Role"
|
||||||
options={[
|
options={[
|
||||||
@@ -58,6 +60,7 @@ const ViewUserPage = () => {
|
|||||||
{ label: "Option 2", value: "Option 2" },
|
{ label: "Option 2", value: "Option 2" },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
{/* Email */}
|
{/* Email */}
|
||||||
<div className={editUserStyle.inputMainContainer}>
|
<div className={editUserStyle.inputMainContainer}>
|
||||||
<div className={editUserStyle.inputContainer}>
|
<div className={editUserStyle.inputContainer}>
|
||||||
|
|||||||
@@ -99,7 +99,13 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
.roleField {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 10px;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
.inputField {
|
.inputField {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ const AddUserPage = () => {
|
|||||||
onSubmit={handleSubmit(onSubmit)}
|
onSubmit={handleSubmit(onSubmit)}
|
||||||
>
|
>
|
||||||
{/* Role and Dropdown */}
|
{/* Role and Dropdown */}
|
||||||
|
<div className={addUserStyle.roleField}>
|
||||||
|
<p>Role</p>
|
||||||
<SelectField
|
<SelectField
|
||||||
label="Select Role"
|
label="Select Role"
|
||||||
options={[
|
options={[
|
||||||
@@ -62,6 +64,7 @@ const AddUserPage = () => {
|
|||||||
{ label: "Option 2", value: "Option 2" },
|
{ label: "Option 2", value: "Option 2" },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
{/* Email */}
|
{/* Email */}
|
||||||
<div className={addUserStyle.inputMainContainer}>
|
<div className={addUserStyle.inputMainContainer}>
|
||||||
<div className={addUserStyle.inputContainer}>
|
<div className={addUserStyle.inputContainer}>
|
||||||
|
|||||||
@@ -86,6 +86,13 @@
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
.roleField {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 10px;
|
||||||
|
align-self: stretch;
|
||||||
|
}
|
||||||
.inputField {
|
.inputField {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user