Added icon for create link on home page

This commit is contained in:
Andrew Scott 2022-06-04 23:22:20 -04:00
parent f0d1b95131
commit e91b3b3aac
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -2,6 +2,7 @@ import ExerciseList from "../components/ExerciseList";
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { useHistory } from "react-router-dom"; import { useHistory } from "react-router-dom";
import { MdAdd } from "react-icons/md";
import "../App.css"; import "../App.css";
function HomePage({ setExerciseToEdit }) { function HomePage({ setExerciseToEdit }) {
@ -44,7 +45,9 @@ function HomePage({ setExerciseToEdit }) {
onEdit={onEdit} onEdit={onEdit}
></ExerciseList> ></ExerciseList>
<div> <div>
<Link to="/create">Create</Link> <Link to="/create">
<MdAdd className="Add-icon" />
</Link>
</div> </div>
</div> </div>
); );