Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove placeholder property #101

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/roles&permissions/ListAllUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ const ListAllUsers: FunctionComponent<Props> = (props) => {
</div>

<button
placeholder="Role"
className=" lg:absolute text-md text-sm text-center text-white rounded dark:bg-green bg-primary w-[120px] lg:right-[80px] lg:w-[150px] py-2 px-3"
onClick={Open}
>
Expand Down
26 changes: 20 additions & 6 deletions src/pages/updateTrainee/traineUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,11 @@ const TraineeUpdate = (props: any) => {
});
getDistricts(e.target.value);
}}
placeholder="Select province"
>
<option value="" disabled>
Select province
</option>

{provinces?.map((province: any) => (
<option
className="dark:bg-dark-tertiary dark:text-white p-3 dark:hover:bg-dark-frame-bg"
Expand Down Expand Up @@ -311,8 +314,11 @@ const TraineeUpdate = (props: any) => {
});
getSectors(formData.province, e.target.value);
}}
placeholder="Select district"
>

<option value="" disabled>
Select district
</option>
<option
className="dark:bg-dark-tertiary dark:text-white hidden"
value={traineeData.district}
Expand Down Expand Up @@ -346,8 +352,10 @@ const TraineeUpdate = (props: any) => {
})
}
name="sector"
placeholder="Select sector"
>
<option value="" disabled>
Select sector
</option>
<option
className="dark:bg-dark-tertiary dark:text-white hidden"
value={traineeData.sector}
Expand Down Expand Up @@ -559,8 +567,10 @@ const TraineeUpdate = (props: any) => {
level_education: e.target.value,
})
}
placeholder="Please select level"
>
<option value="" disabled>
Select education level
</option>
{options?.educationOptions?.map((option: any) => (
<option
className="dark:bg-dark-tertiary p-3 dark:text-white dark:hover:bg-dark-frame-bg"
Expand Down Expand Up @@ -623,7 +633,6 @@ const TraineeUpdate = (props: any) => {
</label>
<select
className="dark:bg-dark-tertiary dark:text-white py-2 px-3 shadow appearance-none rounded w-full leading-tight focus:outline-none focus:shadow-outline"
placeholder="Interview decisison"
defaultValue={traineeData.interview_decision}
onChange={(e) =>
setFormData({
Expand All @@ -632,6 +641,9 @@ const TraineeUpdate = (props: any) => {
})
}
>
<option value="" disabled>
Interview decision
</option>
{options?.interviewOptions?.map((option: any) => (
<option
className="dark:bg-dark-tertiary p-3 dark:text-white dark:hover:bg-dark-frame-bg"
Expand All @@ -650,7 +662,6 @@ const TraineeUpdate = (props: any) => {
<select
className="dark:bg-dark-tertiary dark:text-white shadow py-2 px-3 appearance-none rounded w-full leading-tight focus:outline-none focus:shadow-outline"
ref={cycleRef}
placeholder="Please select cycle"
defaultValue={traineeData?.trainee_id?.cycle_id?.id}
onChange={(e) =>
setFormData({
Expand All @@ -659,6 +670,9 @@ const TraineeUpdate = (props: any) => {
})
}
>
<option value="" disabled>
Please select cycle
</option>
{cycles?.map((cycle: any) => (
<option
className="dark:bg-dark-tertiary dark:text-white dark:hover:bg-dark-frame-bg p-3"
Expand Down