From c312d4b2700f0ab864f843f6963f8696696ef0e1 Mon Sep 17 00:00:00 2001 From: lokeshramchand-ctrl Date: Mon, 8 Dec 2025 15:16:30 +0530 Subject: [PATCH] feat: Refactor App component to integrate LandingPage and ProjectShowcase with search functionality --- src/App.tsx | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 62a9ac8..11fbf3d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,23 +1,32 @@ - import './App.css' +import { useState } from 'react'; import OpenLayerMap from './components/OpenLayerMap'; import OpenLayerEsri from './components/OpenLayerEsri'; import LegiScanAPI from './components/LegiScanAPI'; import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; +import LandingPage from './components/LandingPage'; +import ProjectShowcase from './components/Projectpage'; function App() { + const [addressData, setAddressData] = useState(null); + const [searchTerm, setSearchTerm] = useState(''); - -return ( + const handleSearchSuccess = (data: any, term: string) => { + setAddressData(data); + setSearchTerm(term); + }; + + return ( - - } /> - } /> + + } /> + } /> + } /> } /> } /> - + ); } -export default App; +export default App; \ No newline at end of file