Skip to content

Commit 5152b1d

Browse files
authored
fix: Add beta warning to the connect modal. (#58)
1 parent 3c319b5 commit 5152b1d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/ConnectModal.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
33
import type { RpcTransport } from "@zmkfirmware/zmk-studio-ts-client/transport/index";
44
import { UserCancelledError } from "@zmkfirmware/zmk-studio-ts-client/transport/errors";
55
import type { AvailableDevice } from "./tauri/index";
6-
import { Bluetooth, RefreshCw } from "lucide-react";
6+
import { Bluetooth, RefreshCw, TriangleAlert } from "lucide-react";
77
import { Key, ListBox, ListBoxItem, Selection } from "react-aria-components";
88
import { useModalRef } from "./misc/useModalRef";
99
import { ExternalLink } from "./misc/ExternalLink";
@@ -280,7 +280,19 @@ export const ConnectModal = ({
280280
const haveTransports = useMemo(() => transports.length > 0, [transports]);
281281

282282
return (
283-
<GenericModal ref={dialog}>
283+
<GenericModal ref={dialog} className="max-w-xl">
284+
<div className="rounded my-2 p-2 border">
285+
<TriangleAlert className="size-8 inline-block m-2 float-left" />
286+
<p className="text-lg">ZMK Studio is in beta testing.</p>
287+
<p>
288+
Although every effort has been made to provide a stable experience,
289+
you may still encounter issues during use. Please report any issues to{" "}
290+
<ExternalLink href="https://github.com/zmkfirmware/zmk-studio/issues">
291+
GitHub issues
292+
</ExternalLink>
293+
.
294+
</p>
295+
</div>
284296
<h1 className="text-xl">Welcome to ZMK Studio</h1>
285297
{haveTransports
286298
? connectOptions(transports, onTransportCreated, open)

0 commit comments

Comments
 (0)