mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
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:
@@ -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>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user