diff --git a/src/app/App.tsx b/src/app/App.tsx
index e3c5afa..64111c2 100644
--- a/src/app/App.tsx
+++ b/src/app/App.tsx
@@ -7,9 +7,9 @@ function App (): JSX.Element {
return (
- } />
- } />
- } />
+ } />
+ } />
+ } />
)
diff --git a/src/components/UserCard.tsx b/src/components/UserCard.tsx
index 3737f6f..33f29e7 100644
--- a/src/components/UserCard.tsx
+++ b/src/components/UserCard.tsx
@@ -1,8 +1,108 @@
-function UserCard (): JSX.Element {
+import React, { useState } from "react"; //for the save button that hasnt' been implemented
+import sampleUserData from "../sample_data.json";
+
+import {
+ useDisclosure,
+ Button,
+ ButtonGroup,
+ Modal,
+ ModalOverlay,
+ ModalContent,
+ ModalHeader,
+ ModalFooter,
+ ModalBody,
+ ModalCloseButton,
+ Editable,
+ EditableInput,
+ EditableTextarea,
+ EditablePreview,
+} from "@chakra-ui/react";
+
+interface UserCardProps {
+ buttonText: string;
+ userName: string;
+ email: string;
+ status: string;
+ title: string;
+}
+
+function UserCard({
+ buttonText,
+ userName,
+ email,
+ status,
+ title,
+}: UserCardProps): JSX.Element {
+ const { isOpen, onOpen, onClose } = useDisclosure();
+ const [userName, setName] = useState(userName); //does this go here?
+ const [email, setEmail] = useState(email);
+ const [status, setStatus] = useState(status);
+ const [title, setTitle] = useState(title);
+ const saveChanges = () => {
+ onClose(); //close modal after saving
+ };
+
return (
-
-
- )
+ <>
+
+
+
+
+
+ {userName}'s Information
+
+
+
+ Name:
+ setName(value)}
+ >
+
+
+
+
+ Email:
+ setEmail(value)}
+ >
+
+
+
+
+ Status:
+ setStatus(value)}
+ >
+ {status}
+
+
+
+
+ Title:
+ setTitle(value)}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ >
+ );
}
-export default UserCard
+export default UserCard;