Skip to content

Commit

Permalink
Feat : add bookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaNadirkhanloo committed Sep 13, 2024
1 parent 20d51c8 commit 43e7696
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions src/components/BookmarkItem.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Container } from "@mui/material";
import Grid from "@mui/material/Grid2";
import { Outlet, useSearchParams } from "react-router-dom";
import Map from "./Map";
function BookmarkItem() {
const[searchParams,setSearchParams]=useSearchParams()
console.log(searchParams.get("lat"));

return (
<Container sx={{ mt: 4 }}>
<Grid container>
<Grid size={5}>
<Outlet />
</Grid>
<Grid size={7}>
<Map markdown={[]} />
</Grid>
</Grid>
</Container>
);
}

export default BookmarkItem;
4 changes: 2 additions & 2 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import DialogSelect from "./ui/DialogSelect";
import InputWithIcon from "./ui/InputWithIcon";
import {
createSearchParams,
Link,
Outlet,
useNavigate,
useSearchParams,
Expand Down Expand Up @@ -72,8 +73,6 @@ export default function Header() {
>
<InputWithIcon value={value} setValue={setValue} />
<Box>
{/* <CalendarMonthIcon color="primary" />
2020/55/55 */}
<Daterange date={date} setDate={setDate} />
</Box>
<DialogSelect options={options} setOptions={setOptions} />
Expand All @@ -85,6 +84,7 @@ export default function Header() {
<SavedSearchIcon color="primary" fontSize="inherit" />
</IconButton>
</Box>
<Link to="bookmark">boork</Link>
</Toolbar>
</Container>
</AppBar>
Expand Down

0 comments on commit 43e7696

Please sign in to comment.