Add node.js help callout

This commit is contained in:
Will Chen
2025-04-21 14:56:57 -07:00
parent 531cf23615
commit 187aab7682

View File

@@ -203,6 +203,7 @@ export function SetupBanner() {
)}
</div>
)}
<NodeJsHelpCallout />
</AccordionContent>
</AccordionItem>
@@ -287,3 +288,28 @@ export function SetupBanner() {
</>
);
}
function NodeJsHelpCallout() {
return (
<div className="mt-3 p-3 bg-(--background-lighter) border rounded-lg text-sm">
<p>
If you run into issues, read our{" "}
<a
onClick={() => {
IpcClient.getInstance().openExternalUrl(
"https://www.dyad.sh/docs/help/nodejs"
);
}}
className="text-blue-600 dark:text-blue-400 hover:underline font-medium"
>
Node.js troubleshooting guide
</a>
.{" "}
</p>
<p className="mt-2">
Still stuck? Click the <b>Help</b> button in the bottom-left corner and
then <b>Report a Bug</b>.
</p>
</div>
);
}