Skip to content

Commit

Permalink
fix: Add beta warning to the connect modal. (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson authored Oct 10, 2024
1 parent 3c319b5 commit 5152b1d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ConnectModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
import type { RpcTransport } from "@zmkfirmware/zmk-studio-ts-client/transport/index";
import { UserCancelledError } from "@zmkfirmware/zmk-studio-ts-client/transport/errors";
import type { AvailableDevice } from "./tauri/index";
import { Bluetooth, RefreshCw } from "lucide-react";
import { Bluetooth, RefreshCw, TriangleAlert } from "lucide-react";
import { Key, ListBox, ListBoxItem, Selection } from "react-aria-components";
import { useModalRef } from "./misc/useModalRef";
import { ExternalLink } from "./misc/ExternalLink";
Expand Down Expand Up @@ -280,7 +280,19 @@ export const ConnectModal = ({
const haveTransports = useMemo(() => transports.length > 0, [transports]);

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

0 comments on commit 5152b1d

Please sign in to comment.