Update UserViewTimeReportsPage to include username in Total Time In Project button link
This commit is contained in:
parent
a25413affa
commit
482c732b3d
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import Button from "../../Components/Button";
|
|||
|
||||
function UserViewTimeReportsPage(): JSX.Element {
|
||||
const { projectName } = useParams();
|
||||
const username = localStorage.getItem("username");
|
||||
|
||||
const content = (
|
||||
<>
|
||||
|
@ -18,7 +19,7 @@ function UserViewTimeReportsPage(): JSX.Element {
|
|||
|
||||
const buttons = (
|
||||
<>
|
||||
<Link to={`/viewStatistics/${projectName}`}>
|
||||
<Link to={`/viewStatistics/${projectName}/${username}`}>
|
||||
<Button
|
||||
text="Total Time In Project"
|
||||
onClick={(): void => {
|
||||
|
|
Loading…
Reference in a new issue