Skip to content

Commit 109e850

Browse files
authored
redo migration (#290)
1 parent 9388f8b commit 109e850

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

src/components/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const TraceAlert = lazy(() => import("./shell/TraceAlert"))
3030
const WebDiagnostics = lazy(() => import("./shell/WebDiagnostics"))
3131
const WebCam = lazy(() => import("./ui/WebCam"))
3232
const PassiveAlert = lazy(() => import("./shell/PassiveAlert"))
33+
const MigrationAlert = lazy(() => import("./shell/MigrationAlert"))
3334
const YouTubePlayer = lazy(() => import("./youtube/YouTubePlayer"))
3435

3536
const PREFIX = "Layout"
@@ -251,6 +252,9 @@ function LayoutWithContext(props: LayoutProps) {
251252

252253
const InnerMainSection = () => (
253254
<>
255+
<Suspense>
256+
<MigrationAlert />
257+
</Suspense>
254258
<Suspense>
255259
<SimulatorCommands />
256260
</Suspense>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { Box } from "@mui/material"
2+
import { AlertTitle } from "@mui/material"
3+
import React from "react"
4+
import Alert from "../ui/Alert"
5+
6+
export default function MigrationAlert() {
7+
return (
8+
<Alert severity="warning" sx={{ mb: 2 }}>
9+
<AlertTitle>📢 Important: Jacdac has moved!</AlertTitle>
10+
The Jacdac project has moved to{" "}
11+
<Box
12+
component="a"
13+
href="https://github.com/jacdac"
14+
target="_blank"
15+
rel="noopener noreferrer"
16+
sx={{
17+
color: "inherit",
18+
textDecoration: "underline",
19+
fontWeight: "bold",
20+
}}
21+
>
22+
https://github.com/jacdac
23+
</Box>
24+
. Please update your bookmarks and references to point to the new location.
25+
</Alert>
26+
)
27+
}

0 commit comments

Comments
 (0)