diff --git a/client/src/components/dashboard/Dashboard.tsx b/client/src/components/dashboard/Dashboard.tsx index 8732bda..252b4a1 100755 --- a/client/src/components/dashboard/Dashboard.tsx +++ b/client/src/components/dashboard/Dashboard.tsx @@ -6,7 +6,6 @@ import Experience from "./Experience"; import Education from "./Education"; import { getCurrentProfile, deleteAccount } from "../../actions/profile"; import { Box, Button, Typography } from "@mui/material"; -import { compose } from "redux"; const Dashboard = () => { const dispatch = useAppDispatch(); diff --git a/client/src/components/dashboard/Education.tsx b/client/src/components/dashboard/Education.tsx index 6d93119..d527c03 100755 --- a/client/src/components/dashboard/Education.tsx +++ b/client/src/components/dashboard/Education.tsx @@ -12,7 +12,6 @@ import { TableCell, TableHead, Typography, - TableContainer, } from "@mui/material"; const Education = ({ education }: { education: EducationType[] }) => { diff --git a/client/src/components/profile/Profile.tsx b/client/src/components/profile/Profile.tsx index f695e6b..c5cea66 100755 --- a/client/src/components/profile/Profile.tsx +++ b/client/src/components/profile/Profile.tsx @@ -74,7 +74,9 @@ const Profile = () => { - Experience + + Experience + {profile.experience.length > 0 ? ( <> {profile.experience.map((experience: ExperienceType) => ( @@ -88,8 +90,10 @@ const Profile = () => { No experience credentials )} - - Education + + + Education + {profile.education.length > 0 ? ( <> {profile.education.map((education: EducationType) => ( diff --git a/client/src/components/profile/ProfileGithub.tsx b/client/src/components/profile/ProfileGithub.tsx index 7d40d8d..7cf2d8e 100755 --- a/client/src/components/profile/ProfileGithub.tsx +++ b/client/src/components/profile/ProfileGithub.tsx @@ -1,3 +1,4 @@ +import { Box, List, ListItem, Paper, Typography } from "@mui/material"; import React, { useEffect } from "react"; import { getGithubRepos } from "../../actions/profile"; import { useAppDispatch, useAppSelector } from "../../utils/hooks"; @@ -13,28 +14,39 @@ const ProfileGithub = ({ username }: { username: string }) => { }, [dispatch, username]); return ( -
-

Github Repos

- {repos.map((repo) => ( -
-
-

+ + + Github Repos + + {repos.map((repo) => { + return ( + + {repo.name} -

-

{repo.description}

-
-
-
    -
  • Stars: {repo.stargazers_count}
  • -
  • Watchers: {repo.watchers_count}
  • -
  • Forks: {repo.forks_count}
  • -
-
-
- ))} -
+ + + {repo.description} + + + Stars: {repo.stargazers_count} + Watchers: {repo.watchers_count} + Forks: {repo.forks_count} + + + ); + })} + ); }; diff --git a/client/src/components/profile/ProfileTop.tsx b/client/src/components/profile/ProfileTop.tsx index 0ddf418..9b43531 100755 --- a/client/src/components/profile/ProfileTop.tsx +++ b/client/src/components/profile/ProfileTop.tsx @@ -18,7 +18,9 @@ const ProfileTop = ({ return ( <> - {name} + + {name} + {status} {company ? at {company} : null} diff --git a/server/routers/api/profile.ts b/server/routers/api/profile.ts index 05dfa2e..88fd535 100755 --- a/server/routers/api/profile.ts +++ b/server/routers/api/profile.ts @@ -297,8 +297,6 @@ router.delete("/education/:edu_id", auth, async (req, res) => { // @desc Get user repos from Github // @access Public router.get("/github/:username", async (req, res) => { - console.log(config.get("githubToken")); - console.log(req.params.username); try { const uri = encodeURI( `https://api.github.com/users/${req.params.username}/repos?per_page=5&sort=created:asc`,