File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const TraceAlert = lazy(() => import("./shell/TraceAlert"))
30
30
const WebDiagnostics = lazy ( ( ) => import ( "./shell/WebDiagnostics" ) )
31
31
const WebCam = lazy ( ( ) => import ( "./ui/WebCam" ) )
32
32
const PassiveAlert = lazy ( ( ) => import ( "./shell/PassiveAlert" ) )
33
+ const MigrationAlert = lazy ( ( ) => import ( "./shell/MigrationAlert" ) )
33
34
const YouTubePlayer = lazy ( ( ) => import ( "./youtube/YouTubePlayer" ) )
34
35
35
36
const PREFIX = "Layout"
@@ -251,6 +252,9 @@ function LayoutWithContext(props: LayoutProps) {
251
252
252
253
const InnerMainSection = ( ) => (
253
254
< >
255
+ < Suspense >
256
+ < MigrationAlert />
257
+ </ Suspense >
254
258
< Suspense >
255
259
< SimulatorCommands />
256
260
</ Suspense >
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments