Skip to content

Commit

Permalink
Render data in Client dashboard
Browse files Browse the repository at this point in the history
- ClientProfileCard and LongStudentProfileCard
- Relates #96
  • Loading branch information
misterrodger committed Jun 18, 2019
1 parent 17b3438 commit dacc13f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
import axios from "axios";
import "./ClientProfileCard.css";

const ClientProfileCard = ({ name, company, jobtitle }) => {
const ClientProfileCard = () => {
const [profile, setProfile] = useState([]);

useEffect(() => {
Expand All @@ -11,7 +11,6 @@ const ClientProfileCard = ({ name, company, jobtitle }) => {
console.log(result.data);
setProfile(result.data);
}

fetchData();
}, []);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import "./LongStudentProfileCard.css";
import AcceptDecline from "../../AccectDeclineButtons/AcceptDecline.js";
import axios from "axios";
import "./LongStudentProfileCard.css";
import AcceptDecline from "../../AccectDeclineButtons/AcceptDecline";

const LongStudentProfileCard = () => {
const [data, setData] = useState([]);
Expand All @@ -11,7 +11,6 @@ const LongStudentProfileCard = () => {
const result = await axios(
"/api/student/get-student/5d0783ded1ea443e7621cc88"
);
console.log(result.data);
setData(result.data);
};
fetchData();
Expand Down

0 comments on commit dacc13f

Please sign in to comment.