File tree 3 files changed +12
-14
lines changed
3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,13 @@ import React, { useEffect } from "react";
3
3
export function useFocusOutside ( ref : React . RefObject < HTMLDivElement > , callback : ( ) => void ) {
4
4
useEffect ( ( ) => {
5
5
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 ) ) {
7
7
callback ( ) ;
8
8
}
9
9
}
10
10
11
- document . addEventListener ( "focusin" , handleEvent ) ;
12
11
document . addEventListener ( "mousedown" , handleEvent ) ;
13
12
return ( ) => {
14
- document . removeEventListener ( "focusin" , handleEvent ) ;
15
13
document . removeEventListener ( "mousedown" , handleEvent ) ;
16
14
} ;
17
15
} , [ ref , callback ] ) ;
Original file line number Diff line number Diff line change @@ -30,32 +30,32 @@ const ITEMS = [
30
30
{
31
31
text : "Tokens" ,
32
32
Icon : Tokens ,
33
- url : "https://tokens.kleros.io/ " ,
33
+ url : "https://tokens.kleros.io" ,
34
34
} ,
35
35
{
36
36
text : "POH" ,
37
37
Icon : POH ,
38
- url : "https://www .proofofhumanity.id" ,
38
+ url : "https://app .proofofhumanity.id" ,
39
39
} ,
40
40
{
41
41
text : "Curate" ,
42
42
Icon : Curate ,
43
- url : "https://curate.kleros.io/ " ,
43
+ url : "https://curate.kleros.io" ,
44
44
} ,
45
45
{
46
46
text : "Resolver" ,
47
47
Icon : Resolver ,
48
- url : "https://resolve.kleros.io/ " ,
48
+ url : "https://resolve.kleros.io" ,
49
49
} ,
50
50
{
51
51
text : "Linguo" ,
52
52
Icon : Linguo ,
53
- url : "https://linguo.kleros.io/ " ,
53
+ url : "https://linguo.kleros.io" ,
54
54
} ,
55
55
{
56
56
text : "Governor" ,
57
57
Icon : Governor ,
58
- url : "https://governor.kleros.io/ " ,
58
+ url : "https://governor.kleros.io" ,
59
59
} ,
60
60
] ;
61
61
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const ITEMS = [
13
13
{
14
14
text : "Onboarding" ,
15
15
Icon : Book ,
16
- url : "https://kleros.dodao.io/ " ,
16
+ url : "" ,
17
17
} ,
18
18
{
19
19
text : "Get Help" ,
@@ -23,22 +23,22 @@ const ITEMS = [
23
23
{
24
24
text : "Report a Bug" ,
25
25
Icon : Bug ,
26
- url : "https://github.com/kleros/kleros-v2/issues/new " ,
26
+ url : "https://github.com/kleros/kleros-v2/issues" ,
27
27
} ,
28
28
{
29
29
text : "DApp Guide" ,
30
30
Icon : Guide ,
31
- url : "" ,
31
+ url : "https://docs.kleros.io/products/court-v2 " ,
32
32
} ,
33
33
{
34
34
text : "Crypto Beginner's Guide" ,
35
35
Icon : ETH ,
36
- url : "" ,
36
+ url : "https://ethereum.org/en/wallets/ " ,
37
37
} ,
38
38
{
39
39
text : "FAQ" ,
40
40
Icon : Faq ,
41
- url : "https://kleros.gitbook.io/docs /kleros-faq" ,
41
+ url : "https://docs. kleros.io /kleros-faq" ,
42
42
} ,
43
43
] ;
44
44
You can’t perform that action at this time.
0 commit comments