Add "Home" button with link to the homepage in inventory

This commit adds a "Home" button to the inventory page, allowing users to navigate back to the homepage easily. The `Link` component from "react-router" was imported to achieve this functionality.
This commit is contained in:
2025-01-11 21:53:25 -06:00
parent 643b8cfbcc
commit 211fcac0c3
+4 -1
View File
@@ -1,4 +1,5 @@
import '../App.css' import '../App.css'
import {Link} from "react-router";
function Inventory() { function Inventory() {
@@ -11,7 +12,9 @@ function Inventory() {
<p> <p>
ARFF ARFF BARK BARK ARFF ARFF BARK BARK
</p> </p>
<Link to="/">
<button>Home</button>
</Link>
</> </>
) )