Skip to content

Commit

Permalink
feat: add github and discord links to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtsukino committed Oct 9, 2024
1 parent b363527 commit 70232e3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/Options/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ export default function Options(): ReactElement {
setAdvanced(!advanced);
}, [advanced]);

const openInTab = useCallback((url: string) => {
browser.tabs.create({ url });
}, []);

return (
<div className="flex flex-col flex-nowrap flex-grow">
{showReloadModal && (
Expand Down Expand Up @@ -152,6 +156,22 @@ export default function Options(): ReactElement {
Save
</button>
</div>
<div className="flex flex-col w-full items-end gap-2 p-2">
<button
className="button"
onClick={() =>
openInTab('https://github.com/tlsnotary/tlsn-extension/issues/new')
}
>
File an issue
</button>
<button
className="button"
onClick={() => openInTab('https://discord.gg/9XwESXtcN7')}
>
Join our Discord
</button>
</div>
</div>
);
}
Expand Down

0 comments on commit 70232e3

Please sign in to comment.