Skip to content

Commit

Permalink
feat(frontend): add URLs for buttons to redirect
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <tareknaser360@gmail.com>
  • Loading branch information
tareknaser committed Aug 31, 2024
1 parent 5b44c88 commit 9714528
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/app/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@ export default class App {
window.open("https://ui.use.ink/");
});

document.querySelector("#docs")!.addEventListener("click", () => {
console.log("Redirecting to https://solang.readthedocs.io/");
window.open("https://solang.readthedocs.io/");
});

document.querySelector("#github")!.addEventListener("click", () => {
console.log("Redirecting to github.com/hyperledger-labs/solang-playground");
window.open("https://github.com/hyperledger-labs/solang-playground");
});


// eslint-disable-next-line @typescript-eslint/require-await
client.pushAfterInitializeHook(async () => {
Expand Down

0 comments on commit 9714528

Please sign in to comment.