From 6f3084722951d1e2d890688e0719dcbba19082e5 Mon Sep 17 00:00:00 2001
From: Mike Smith <89040888+smiggiddy@users.noreply.github.com>
Date: Wed, 19 Jun 2024 21:04:38 -0400
Subject: [PATCH] feat: updated education info component
---
cv-project/src/components/educationInfo.jsx | 116 ++++++++++++++------
cv-project/src/components/generalInfo.jsx | 68 +++++++-----
2 files changed, 124 insertions(+), 60 deletions(-)
diff --git a/cv-project/src/components/educationInfo.jsx b/cv-project/src/components/educationInfo.jsx
index 4bce297..78bfd3a 100644
--- a/cv-project/src/components/educationInfo.jsx
+++ b/cv-project/src/components/educationInfo.jsx
@@ -1,31 +1,45 @@
-import { useState } from "react";
+import { useState, useEffect } from "react";
export default function EducationInfo() {
- const [education, setEducation] = useState([]);
+ const [schools, setSchools] = useState([]);
const [educationItemActive, setEducationItemActive] = useState(false);
+ const [editSchool, setEditSchool] = useState(null);
+
+ const mainDivStyle = {
+ display: "flex",
+ justifyContent: "space-between",
+ flexDirection: "row-reverse",
+ };
return (
-
- {education.length <= 0 ? (
+
+ {schools.length <= 0 ? (
<>
Add your Education info
>
) : (
-
+
)}
-
+
+
-
+
+
);
}
@@ -40,9 +54,7 @@ function EducationDisplay(props) {
Graduation Date: {item.graduationDate + " "}
Field of Study: {item.fieldOfStudy}
-
+