Skip to content

Commit 6073ee4

Browse files
Merge pull request #12 from Tracktor/fix
fix: maker trigger click
2 parents 5b9c59d + c4fb51f commit 6073ee4

File tree

12 files changed

+63
-62
lines changed

12 files changed

+63
-62
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
},
1818
"scripts": {
1919
"sandbox": "vite --config vite.config.sandbox.ts",
20-
"dev:sandbox": "vite --config vite.config.sandbox.ts",
2120
"build:sandbox": "vite build --config vite.config.sandbox.ts",
2221
"deploy:sandbox": "bun run build:sandbox && cp dist-sandbox/index.html dist-sandbox/404.html && gh-pages -d dist-sandbox",
2322
"build": "bunx tsc && bunx vite build",
File renamed without changes.
File renamed without changes.

sandbox/features/LandingPage/LandingPage.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Box } from "@tracktor/design-system";
2+
import FeaturesPreview from "sandbox/assets/features-preview.png";
3+
import IsochronePreview from "sandbox/assets/isochrone-preview.png";
4+
import MarkerPreview from "sandbox/assets/markers-preview.png";
5+
import NearestPreview from "sandbox/assets/nearest-preview.png";
6+
import RoutePreview from "sandbox/assets/route-preview.png";
27
import ApiReference from "sandbox/features/LandingPage/ApiReference";
38
import CodeExample from "sandbox/features/LandingPage/CodeExample";
49
import ExampleCard from "sandbox/features/LandingPage/ExampleCard";
510
import Hero from "sandbox/features/LandingPage/Hero";
6-
import FeaturesPreview from "sandbox/public/assets/features-preview.png";
7-
import IsochronePreview from "sandbox/public/assets/isochrone-preview.png";
8-
import MarkerPreview from "sandbox/public/assets/markers-preview.png";
9-
import NearestPreview from "sandbox/public/assets/nearest-preview.png";
10-
import RoutePreview from "sandbox/public/assets/route-preview.png";
1111

1212
const cardData = [
1313
{ desc: "Customizable markers with tooltips.", image: MarkerPreview, path: "/markers", title: "📍 Markers" },

sandbox/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>@Tracktor/map</title>
7-
<link rel="icon" type="image/svg+xml" href="/public/assets/globe.svg" />
7+
<link rel="icon" type="image/svg+xml" href="/globe.svg" />
88
</head>
99
<body>
1010
<div id="root"></div>

sandbox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import App from "./App";
55

66
createRoot(document.getElementById("root") as HTMLElement).render(
77
<StrictMode>
8-
<BrowserRouter basename="/map">
8+
<BrowserRouter>
99
<App />
1010
</BrowserRouter>
1111
</StrictMode>,
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { Box } from "@tracktor/design-system";
2+
3+
interface EmptyStateProps {
4+
width?: string | number;
5+
height?: string | number;
6+
}
7+
8+
const EmptyState = ({ width, height }: EmptyStateProps) => {
9+
return (
10+
<Box
11+
sx={{
12+
alignItems: "center",
13+
bgcolor: "grey.100",
14+
display: "flex",
15+
height,
16+
justifyContent: "center",
17+
p: 2,
18+
textAlign: "center",
19+
width,
20+
}}
21+
>
22+
<span>
23+
🚫 <strong>Cannot display the map</strong>
24+
<br />
25+
Try to activate WebGL in your browser settings.
26+
</span>
27+
</Box>
28+
);
29+
};
30+
31+
export default EmptyState;

0 commit comments

Comments
 (0)