diff --git a/src/App.tsx b/src/App.tsx index 0a01849..dec0b26 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -65,15 +65,7 @@ const router = createBrowserRouter([ path: "/member-information-test", element: (
- - +
), }, diff --git a/src/components/MemberInformation.tsx b/src/components/MemberInformation.tsx index 518a2a8..116ed1d 100644 --- a/src/components/MemberInformation.tsx +++ b/src/components/MemberInformation.tsx @@ -9,24 +9,20 @@ import { //#region Interfaces interface MemberInformationProps { - link: string; - lastName: string; - errorText?: string; + className?: string; } //#endregion /** * Renders a member information component. - * @param link - The link of the member. - * @param lastName - The last name of the member. * @param errorText - The error text to be displayed. * @returns */ -const MemberInformation = ({ - link, - lastName, - errorText, -}: MemberInformationProps) => { +const MemberInformation = ({ className }: MemberInformationProps) => { + const [lastName, setLastName] = useState("Lastname"); + const [link, setLink] = useState("Link"); + const [errorText, setErrorText] = useState("Error message"); + const [password, setPassword] = useState(); const [copied, setCopied] = useState(false); const fields = [ @@ -72,7 +68,9 @@ const MemberInformation = ({ }, 2500); return ( -
+
{/* title */}