From 91ffe5a67f5f6afe08b990d6a2a0fcf1599b4777 Mon Sep 17 00:00:00 2001 From: Joey Huang Date: Tue, 19 Sep 2023 12:35:12 -0400 Subject: [PATCH 1/3] update --- vite-project/package.json | 3 ++- vite-project/src/App.jsx | 7 +++++-- vite-project/src/Pages.jsx | 7 +++++++ vite-project/src/SearchForm.jsx | 9 ++++++++- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 vite-project/src/Pages.jsx diff --git a/vite-project/package.json b/vite-project/package.json index dcee456..b27648a 100644 --- a/vite-project/package.json +++ b/vite-project/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "vite build", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", - "preview": "vite preview" + "preview": "vite preview", + "start": "node SearchForm.jsx" }, "dependencies": { "axios": "^1.4.0", diff --git a/vite-project/src/App.jsx b/vite-project/src/App.jsx index c5aaa21..ee9fafa 100644 --- a/vite-project/src/App.jsx +++ b/vite-project/src/App.jsx @@ -3,7 +3,8 @@ import './styles.css' import {Header} from "./Header" import {Contact} from "./Contact" import {Search} from "./Search" -import {Favorites} from "./Favorites" +import { Favorites } from "./Favorites" +import {Pages} from "./Pages" import dotenv from "dotenv" function App() { @@ -33,7 +34,9 @@ function App() { {page === "Search" && || page === "Contact" && || page === "Favorites" && } -