File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
Expand file tree Collapse file tree 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";
33export 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 ] ) ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments