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

fixes "Set average weekly working hour" button in user tab is not responsive Fixes #7309 #7480

Merged
11 changes: 7 additions & 4 deletions src/Components/Users/ManageUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,18 +410,21 @@
{["DistrictAdmin", "StateAdmin"].includes(
authUser.user_type
) && (
<div className="flex-col md:flex-row">
<div className="">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="">
<div>

<ButtonV2
id="avg-workinghour"
className="flex w-full items-center md:w-full"
className="flex w-full"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
className="flex w-full"
className="w-full"

onClick={() => {
setExpandWorkingHours(true);
setSelectedUser(user.username);
setWeeklyHours(user.weekly_working_hours);
}}
>
<CareIcon icon="l-clock" className="text-xl" />
<p>Set Average weekly working hours</p>
<CareIcon className="care-l-clock text-xl" />

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (1)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (2)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (3)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (4)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (5)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (6)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (7)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.

Check failure on line 423 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / cypress-run (8)

Property 'icon' is missing in type '{ className: string; }' but required in type 'CareIconProps'.
<p className="whitespace-nowrap md:whitespace-normal">
rithviknishad marked this conversation as resolved.
Show resolved Hide resolved
Set Average weekly working hours
</p>

Check failure on line 427 in src/Components/Users/ManageUsers.tsx

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎·············`
</ButtonV2>
</div>
)}
Expand Down
Loading