mirror of
https://codeberg.org/andyscott/ExerciseTracker.git
synced 2024-12-21 11:43:10 -05:00
Added icon for create link on home page
This commit is contained in:
parent
f0d1b95131
commit
e91b3b3aac
1 changed files with 4 additions and 1 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue