Skip to content

Commit

Permalink
fix: Add link to unlock behavior docs in unlock modal
Browse files Browse the repository at this point in the history
To help new studio users, add a link to the unlock behavior docs
directly in the unlock modal.
  • Loading branch information
petejohanson committed Nov 13, 2024
1 parent 6edb4b0 commit 4e50c40
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/UnlockModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { LockState } from "@zmkfirmware/zmk-studio-ts-client/core";
import { ConnectionContext } from "./rpc/ConnectionContext";
import { useModalRef } from "./misc/useModalRef";
import { GenericModal } from "./GenericModal";
import { ExternalLink } from "./misc/ExternalLink";

export type TransportFactory = {
label: string;
Expand Down Expand Up @@ -37,6 +38,13 @@ export const UnlockModal = ({}: UnlockModalProps) => {
For security reasons, your keyboard requires unlocking before using ZMK
Studio.
</p>
<p>
If studio unlocking hasn't been added to your keymap or a combo, see the{" "}
<ExternalLink href="https://zmk.dev/docs/keymaps/behaviors/studio-unlock">
Studio Unlock Behavior
</ExternalLink>{" "}
documentation for more infomation.
</p>
</GenericModal>
);
};

0 comments on commit 4e50c40

Please sign in to comment.