From e08605f567f9ae6766e61076e27c283a2701bb4b Mon Sep 17 00:00:00 2001 From: wanning Date: Sun, 27 Aug 2023 08:01:31 +1000 Subject: [PATCH] logo --- src/pages/Home.jsx | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index 89b1374..8848bac 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -1,29 +1,40 @@ import React from 'react'; import Plant from '../components/Plant'; import Menubar from '../components/Menubar'; -import { useState } from "react"; +import { useState } from 'react'; import defaultPlants from '../assets/defaultPlants.json'; +import { config } from '../logic/constants'; const Home = () => { const [plants, setPlants] = useState( - (localStorage.getItem('plants') != null) ? JSON.parse(localStorage.getItem('plants')) : defaultPlants + localStorage.getItem('plants') != null + ? JSON.parse(localStorage.getItem('plants')) + : defaultPlants ); return (
-

Leafy Link

+
+ Logo +


-
- {plants.map((plant) => (plant.owned == false) ? ( -
- -
- ) : null)} -
+
+ {plants.map((plant) => + plant.owned == false ? ( +
+ +
+ ) : null + )} +
Made with ♥ by Luke, Wanning, Larissa, Ryan, and Haowen
- +
); };