-
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
Showing
12 changed files
with
1,261 additions
and
480 deletions.
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,11 @@ | ||
import '../../static/stylesheets/modal.css' | ||
export const Modal = ({ onClose }) => { | ||
return ( | ||
<div id="modal-overlay"> | ||
<div id="modal"> | ||
<h4>Площадката беше променена успешно и отново ще бъде показана на картата след одобрение от администратор</h4> | ||
<button onClick={onClose}>Затвори</button> | ||
</div> | ||
</div> | ||
) | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import {Routes, Route} from "react-router-dom" | ||
import { Routes, Route } from "react-router-dom" | ||
import { HomePage } from "../Pages/HomePage" | ||
import { PlaygroundPage } from "../Pages/PlaygroundPage" | ||
import { LoginPage } from "../Pages/LoginPage" | ||
import { PlaygroundFormPage } from "../Pages/PlaygroundFormPage" | ||
import { ProfilePage } from "../Pages/ProfilePage" | ||
import { EditPage } from "../Pages/EditPage" | ||
|
||
export const PageRoutes = () => { | ||
return( | ||
return ( | ||
<Routes> | ||
<Route exact path="/" element={<HomePage />} /> | ||
<Route exact path="/playground/:id" element={<PlaygroundPage />} /> | ||
<Route exact path="/login" element={<LoginPage />} /> | ||
<Route exact path="/add" element={<PlaygroundFormPage />} /> | ||
<Route exact path="/profile" element={<ProfilePage />} /> | ||
<Route exact path="/edit/:id" element={<EditPage />} /> | ||
</Routes> | ||
) | ||
} |
Oops, something went wrong.