Add node.js help callout
This commit is contained in:
@@ -203,6 +203,7 @@ export function SetupBanner() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
<NodeJsHelpCallout />
|
||||||
</AccordionContent>
|
</AccordionContent>
|
||||||
</AccordionItem>
|
</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>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user