@@ -15,6 +15,7 @@ import { responsiveSize } from "styles/responsiveSize";
1515
1616import ConnectWallet from "components/ConnectWallet" ;
1717import LightButton from "components/LightButton" ;
18+ import JurorLevels from "components/Popup/MiniGuides/JurorLevels" ;
1819import Appeal from "components/Popup/MiniGuides/Appeal" ;
1920import BinaryVoting from "components/Popup/MiniGuides/BinaryVoting" ;
2021import DisputeResolver from "components/Popup/MiniGuides/DisputeResolver" ;
@@ -110,6 +111,7 @@ const DesktopHeader: React.FC = () => {
110111 const [ isDappListOpen , toggleIsDappListOpen ] = useToggle ( false ) ;
111112 const [ isHelpOpen , toggleIsHelpOpen ] = useToggle ( false ) ;
112113 const [ isSettingsOpen , toggleIsSettingsOpen ] = useToggle ( false ) ;
114+ const [ isJurorLevelsMiniGuideOpen , toggleIsJurorLevelsMiniGuideOpen ] = useToggle ( false ) ;
113115 const [ isAppealMiniGuideOpen , toggleIsAppealMiniGuideOpen ] = useToggle ( false ) ;
114116 const [ isBinaryVotingMiniGuideOpen , toggleIsBinaryVotingMiniGuideOpen ] = useToggle ( false ) ;
115117 const [ isDisputeResolverMiniGuideOpen , toggleIsDisputeResolverMiniGuideOpen ] = useToggle ( false ) ;
@@ -122,13 +124,15 @@ const DesktopHeader: React.FC = () => {
122124 const isDefaultChain = chainId === DEFAULT_CHAIN ;
123125 const initializeFragmentURL = useCallback ( ( ) => {
124126 const hashIncludes = ( hash : MiniguideHashesType | "#notifications" ) => location . hash . includes ( hash ) ;
127+ const hasJurorLevelsMiniGuidePath = hashIncludes ( "#jurorlevels-miniguide" ) ;
125128 const hasAppealMiniGuidePath = hashIncludes ( "#appeal-miniguide" ) ;
126129 const hasBinaryVotingMiniGuidePath = hashIncludes ( "#binaryvoting-miniguide" ) ;
127130 const hasDisputeResolverMiniGuidePath = hashIncludes ( "#disputeresolver-miniguide" ) ;
128131 const hasRankedVotingMiniGuidePath = hashIncludes ( "#rankedvoting-miniguide" ) ;
129132 const hasStakingMiniGuidePath = hashIncludes ( "#staking-miniguide" ) ;
130133 const hasOnboardingMiniGuidePath = hashIncludes ( "#onboarding-miniguide" ) ;
131134 const hasNotificationsPath = hashIncludes ( "#notifications" ) ;
135+ toggleIsJurorLevelsMiniGuideOpen ( hasJurorLevelsMiniGuidePath ) ;
132136 toggleIsAppealMiniGuideOpen ( hasAppealMiniGuidePath ) ;
133137 toggleIsBinaryVotingMiniGuideOpen ( hasBinaryVotingMiniGuidePath ) ;
134138 toggleIsDisputeResolverMiniGuideOpen ( hasDisputeResolverMiniGuidePath ) ;
@@ -139,6 +143,7 @@ const DesktopHeader: React.FC = () => {
139143 toggleIsSettingsOpen ( hasNotificationsPath ) ;
140144 setInitialTab ( hasNotificationsPath ? 1 : 0 ) ;
141145 } , [
146+ toggleIsJurorLevelsMiniGuideOpen ,
142147 toggleIsAppealMiniGuideOpen ,
143148 toggleIsBinaryVotingMiniGuideOpen ,
144149 toggleIsDisputeResolverMiniGuideOpen ,
@@ -190,6 +195,7 @@ const DesktopHeader: React.FC = () => {
190195 { isSettingsOpen && < Settings { ...{ toggleIsSettingsOpen, isSettingsOpen, initialTab } } /> }
191196 </ PopupContainer >
192197 ) }
198+ { isJurorLevelsMiniGuideOpen && < JurorLevels toggleMiniGuide = { toggleIsJurorLevelsMiniGuideOpen } /> }
193199 { isAppealMiniGuideOpen && < Appeal toggleMiniGuide = { toggleIsAppealMiniGuideOpen } /> }
194200 { isBinaryVotingMiniGuideOpen && < BinaryVoting toggleMiniGuide = { toggleIsBinaryVotingMiniGuideOpen } /> }
195201 { isDisputeResolverMiniGuideOpen && < DisputeResolver toggleMiniGuide = { toggleIsDisputeResolverMiniGuideOpen } /> }
0 commit comments