From ba51582e825477bec23c2aa37ba43bd6482a2a29 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Fri, 23 Aug 2024 15:53:38 -0700 Subject: implement itemprice component --- src/components/AnotherComponent.tsx | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/components/AnotherComponent.tsx (limited to 'src/components/AnotherComponent.tsx') diff --git a/src/components/AnotherComponent.tsx b/src/components/AnotherComponent.tsx deleted file mode 100644 index f74e924..0000000 --- a/src/components/AnotherComponent.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import React, { useState, useEffect } from 'react'; - -const AnotherComponent: React.FC = () => { - const [selectedWorld, setSelectedWorld] = useState(null); - - useEffect(() => { - // Load selected world from localStorage - const savedWorld = localStorage.getItem('selectedWorld'); - if (savedWorld) { - setSelectedWorld(savedWorld); - } - }, []); - - return ( -
-

Selected World: {selectedWorld}

- -
- ); -}; - -export default AnotherComponent; \ No newline at end of file -- cgit v1.2.3