added change username button

This commit is contained in:
pavel Hamawand 2024-03-19 01:02:39 +01:00
parent d2a8399bde
commit c072aff9da
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,4 @@
import { Link } from "react-router-dom";
import Button from "./Button"; import Button from "./Button";
import DeleteUser from "./DeleteUser"; import DeleteUser from "./DeleteUser";
import UserProjectListAdmin from "./UserProjectListAdmin"; import UserProjectListAdmin from "./UserProjectListAdmin";
@ -30,6 +31,15 @@ function UserInfoModal(props: {
}} }}
type="button" type="button"
/> />
<Link to="/AdminChangeUserName">
<Button
text="Change Username"
onClick={(): void => {
return;
}}
type="button"
/>
</Link>
<Button <Button
text={"Close"} text={"Close"}
onClick={function (): void { onClick={function (): void {

View file

@ -6,7 +6,7 @@ import UserProjectListAdmin from "../../Components/UserProjectListAdmin";
function AdminViewUserInfo(): JSX.Element { function AdminViewUserInfo(): JSX.Element {
const content = ( const content = (
<> <>
<UserProjectListAdmin username={""} /> <UserProjectListAdmin />
</> </>
); );