• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

atlp-rwanda / hackers-ec-Fe / #729

09 Jul 2024 11:48AM UTC coverage: 91.632% (-0.3%) from 91.92%
#729

push

web-flow
Merge pull request #29 from atlp-rwanda/feat-user-update-password-187419008

#187419008 User should be able to update their password

505 of 641 branches covered (78.78%)

Branch coverage included in aggregate %.

231 of 257 new or added lines in 6 files covered. (89.88%)

6 existing lines in 2 files now uncovered.

6142 of 6613 relevant lines covered (92.88%)

11.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.76
/src/components/UserProfileSideBox.tsx
1
import { Link, useLocation } from 'react-router-dom';
1✔
2
import { useState } from 'react';
1✔
3

1✔
4
function UserProfileSideBox() {
10✔
5
        const location = useLocation();
10✔
6
        const [active, setActive] = useState(location.pathname);
10✔
7

10✔
8
        const handleClick = (path: string) => {
10✔
NEW
9
                setActive(path);
×
NEW
10
        };
×
11

10✔
12
        return (
10✔
13
                <div className="flex flex-col gap-3 w-[10rem] font-bold bg-neutral-white rounded shadow relative tablet:mb-auto">
10✔
14
                        <p
10✔
15
                                className={`relative text-center cursor-pointer ${
10✔
16
                                        active === '/profile' ? 'text-primary-lightblue' : ''
10!
17
                                } hover:text-primary-lightblue`}
10✔
18
                                onClick={() => handleClick('/profile')}
10✔
19
                        >
10✔
20
                                <Link to="/profile">Profile</Link>
10✔
21
                                <span
10✔
22
                                        className={`absolute left-0 h-full w-2 ${
10✔
23
                                                active === '/profile' ? 'bg-primary-lightblue' : ''
10!
24
                                        } hover:bg-primary-lightblue`}
10✔
25
                                ></span>
10✔
26
                        </p>
10✔
27
                        <p
10✔
28
                                className={`relative text-center cursor-pointer ${
10✔
29
                                        active === '/password' ? 'text-primary-lightblue' : ''
10!
30
                                } hover:text-primary-lightblue`}
10✔
31
                                onClick={() => handleClick('/password')}
10✔
32
                        >
10✔
33
                                <Link to="/password">Password</Link>
10✔
34
                                <span
10✔
35
                                        className={`absolute left-0 h-full w-2 ${
10✔
36
                                                active === '/password' ? 'bg-primary-lightblue' : ''
10!
37
                                        } hover:bg-primary-lightblue`}
10✔
38
                                ></span>
10✔
39
                        </p>
10✔
40
                </div>
10✔
41
        );
10✔
42
}
10✔
43

1✔
44
export default UserProfileSideBox;
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc