-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdf530e
commit dd6b79f
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import styles from "./App.module.css"; | ||
import MapsComp from "./components/Mapcomp"; | ||
import Header from "./components/Header"; | ||
import SearchBar from "./components/SearchBar"; | ||
import SearchResultsList from "./components/SearchResultsList"; | ||
import React,{useState} from "react"; | ||
|
||
|
||
|
||
function App() { | ||
const [results, setResults] = useState([]); | ||
|
||
const resultdata = (filedata) =>{ | ||
const data = { | ||
...filedata | ||
}; | ||
console.log("etrhetrhethetrhetrhetrhetr"); | ||
console.log(data); | ||
}; | ||
|
||
return ( | ||
<div className={styles.c4}> | ||
<Header></Header> | ||
|
||
|
||
<div className="search-bar-container"> | ||
<SearchBar onsavesmth={resultdata} /> | ||
|
||
</div> | ||
<div className={styles.c2} > | ||
|
||
<MapsComp ></MapsComp> | ||
{results && results.length > 0 && | ||
<SearchResultsList showdata={resultdata} | ||
/>} | ||
</div> | ||
|
||
</div> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters