From bdd6993473abdbf5b267a61737c67735135d61fb Mon Sep 17 00:00:00 2001 From: Avery Jacobsen <ajacobsen20@huskers.unl.edu> Date: Tue, 29 Aug 2023 21:28:05 -0500 Subject: [PATCH] Added placeholder inventory react component --- inventory-app/src/__snapshots__/app.test.js.snap | 8 +++++++- inventory-app/src/app.js | 2 ++ inventory-app/src/features/inventory/inventory.js | 7 +++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 inventory-app/src/features/inventory/inventory.js diff --git a/inventory-app/src/__snapshots__/app.test.js.snap b/inventory-app/src/__snapshots__/app.test.js.snap index 6c4af2a..d7852e2 100644 --- a/inventory-app/src/__snapshots__/app.test.js.snap +++ b/inventory-app/src/__snapshots__/app.test.js.snap @@ -1,3 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`the app has one labeled button that displays the value from the store 1`] = `<div />`; +exports[`the app has one labeled button that displays the value from the store 1`] = ` +<div> + <main> + [placeholder text] + </main> +</div> +`; diff --git a/inventory-app/src/app.js b/inventory-app/src/app.js index c963f09..a223914 100644 --- a/inventory-app/src/app.js +++ b/inventory-app/src/app.js @@ -1,8 +1,10 @@ import { Routes, Route } from 'react-router-dom'; +import { Inventory } from './features/inventory/inventory.js'; export function App() { const page = <> + <Inventory/> </>; return ( <Routes> diff --git a/inventory-app/src/features/inventory/inventory.js b/inventory-app/src/features/inventory/inventory.js new file mode 100644 index 0000000..5ff056a --- /dev/null +++ b/inventory-app/src/features/inventory/inventory.js @@ -0,0 +1,7 @@ +export function Inventory() { + return ( + <main> + [placeholder text] + </main> + ); +} -- GitLab