Skip to content

Commit

Permalink
refactor(frontend)!: Remove map
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel7004 committed Dec 24, 2024
1 parent 270bb59 commit c1cd47e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 33 deletions.
5 changes: 3 additions & 2 deletions frontend/islands/DataDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ interface User {

interface Point {
id: string;
coordinates: GeoJsonPoint;
name: string;
description: string;
availability: number;
coordinates: GeoJsonPoint;
rating: number;
}

interface Route {
Expand Down
26 changes: 0 additions & 26 deletions frontend/routes/admin.tsx

This file was deleted.

20 changes: 15 additions & 5 deletions frontend/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
import Layout, { NavbarContent, SidebarContent } from "../islands/Layout.tsx";
import Map from "../islands/Map.tsx";
import DataDisplay from "../islands/DataDisplay.tsx";
import Layout from "../islands/Layout.tsx";
import { NavbarContent, SidebarContent } from "../islands/Layout.tsx";

export default function Admin() {
const links = (
<ul>
<li class="my-4">
<a class="hover:bg-nord9 p-4" href="/admin">База данных</a>
</li>
</ul>
);

export default function Home() {
return (
<div>
<Layout brand="ОЗЕРА.ТУТ" sidebarState={false}>
<Layout brand="Admin page">
<SidebarContent>
{links}
</SidebarContent>
<NavbarContent>
</NavbarContent>
<Map />
<DataDisplay />
</Layout>
</div>
);
Expand Down

0 comments on commit c1cd47e

Please sign in to comment.