Skip to content

Commit 173a2a5

Browse files
committed
fix: fixed links and modal behavior
1 parent 23ba21b commit 173a2a5

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

web/src/hooks/useFocusOutside.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@ import React, { useEffect } from "react";
33
export function useFocusOutside(ref: React.RefObject<HTMLDivElement>, callback: () => void) {
44
useEffect(() => {
55
function handleEvent(event: FocusEvent | MouseEvent) {
6-
if (ref.current && !ref.current.contains(event.target as Node)) {
6+
if (document.visibilityState === "visible" && ref.current && !ref.current.contains(event.target as Node)) {
77
callback();
88
}
99
}
1010

11-
document.addEventListener("focusin", handleEvent);
1211
document.addEventListener("mousedown", handleEvent);
1312
return () => {
14-
document.removeEventListener("focusin", handleEvent);
1513
document.removeEventListener("mousedown", handleEvent);
1614
};
1715
}, [ref, callback]);

web/src/layout/Header/navbar/DappList.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,32 @@ const ITEMS = [
2929
{
3030
text: "Tokens",
3131
Icon: Tokens,
32-
url: "https://tokens.kleros.io/",
32+
url: "https://tokens.kleros.io",
3333
},
3434
{
3535
text: "POH",
3636
Icon: POH,
37-
url: "https://www.proofofhumanity.id",
37+
url: "https://app.proofofhumanity.id",
3838
},
3939
{
4040
text: "Curate",
4141
Icon: Curate,
42-
url: "https://curate.kleros.io/",
42+
url: "https://curate.kleros.io",
4343
},
4444
{
4545
text: "Resolver",
4646
Icon: Resolver,
47-
url: "https://resolve.kleros.io/",
47+
url: "https://resolve.kleros.io",
4848
},
4949
{
5050
text: "Linguo",
5151
Icon: Linguo,
52-
url: "https://linguo.kleros.io/",
52+
url: "https://linguo.kleros.io",
5353
},
5454
{
5555
text: "Governor",
5656
Icon: Governor,
57-
url: "https://governor.kleros.io/",
57+
url: "https://governor.kleros.io",
5858
},
5959
];
6060

web/src/layout/Header/navbar/Menu/Help.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const ITEMS = [
1212
{
1313
text: "Onboarding",
1414
Icon: Book,
15-
url: "https://kleros.dodao.io/",
15+
url: "",
1616
},
1717
{
1818
text: "Get Help",
@@ -22,22 +22,22 @@ const ITEMS = [
2222
{
2323
text: "Report a Bug",
2424
Icon: Bug,
25-
url: "https://github.com/kleros/kleros-v2/issues/new",
25+
url: "https://github.com/kleros/kleros-v2/issues",
2626
},
2727
{
2828
text: "DApp Guide",
2929
Icon: Guide,
30-
url: "",
30+
url: "https://docs.kleros.io/products/court-v2",
3131
},
3232
{
3333
text: "Crypto Beginner's Guide",
3434
Icon: ETH,
35-
url: "",
35+
url: "https://ethereum.org/en/wallets/",
3636
},
3737
{
3838
text: "FAQ",
3939
Icon: Faq,
40-
url: "https://kleros.gitbook.io/docs/kleros-faq",
40+
url: "https://docs.kleros.io/kleros-faq",
4141
},
4242
];
4343

0 commit comments

Comments
 (0)