[go: nahoru, domu]

Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
SpyrosSdougkas committed Jul 9, 2023
1 parent cdf530e commit dd6b79f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions front-end/src/components/App.js
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;
2 changes: 1 addition & 1 deletion front-end/src/components/Mapcomp.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function Mapcomp() {

return (
<>
<div className={styles.c0}>
<div className={styles.lc}>
<MapContainer
className={styles.lc}
center={[37.98381, 23.727539]}
Expand Down

0 comments on commit dd6b79f

Please sign in to comment.