@@ -15,6 +15,7 @@ import { responsiveSize } from "styles/responsiveSize";
15
15
16
16
import ConnectWallet from "components/ConnectWallet" ;
17
17
import LightButton from "components/LightButton" ;
18
+ import JurorLevels from "components/Popup/MiniGuides/JurorLevels" ;
18
19
import Appeal from "components/Popup/MiniGuides/Appeal" ;
19
20
import BinaryVoting from "components/Popup/MiniGuides/BinaryVoting" ;
20
21
import DisputeResolver from "components/Popup/MiniGuides/DisputeResolver" ;
@@ -110,6 +111,7 @@ const DesktopHeader: React.FC = () => {
110
111
const [ isDappListOpen , toggleIsDappListOpen ] = useToggle ( false ) ;
111
112
const [ isHelpOpen , toggleIsHelpOpen ] = useToggle ( false ) ;
112
113
const [ isSettingsOpen , toggleIsSettingsOpen ] = useToggle ( false ) ;
114
+ const [ isJurorLevelsMiniGuideOpen , toggleIsJurorLevelsMiniGuideOpen ] = useToggle ( false ) ;
113
115
const [ isAppealMiniGuideOpen , toggleIsAppealMiniGuideOpen ] = useToggle ( false ) ;
114
116
const [ isBinaryVotingMiniGuideOpen , toggleIsBinaryVotingMiniGuideOpen ] = useToggle ( false ) ;
115
117
const [ isDisputeResolverMiniGuideOpen , toggleIsDisputeResolverMiniGuideOpen ] = useToggle ( false ) ;
@@ -122,13 +124,15 @@ const DesktopHeader: React.FC = () => {
122
124
const isDefaultChain = chainId === DEFAULT_CHAIN ;
123
125
const initializeFragmentURL = useCallback ( ( ) => {
124
126
const hashIncludes = ( hash : MiniguideHashesType | "#notifications" ) => location . hash . includes ( hash ) ;
127
+ const hasJurorLevelsMiniGuidePath = hashIncludes ( "#jurorlevels-miniguide" ) ;
125
128
const hasAppealMiniGuidePath = hashIncludes ( "#appeal-miniguide" ) ;
126
129
const hasBinaryVotingMiniGuidePath = hashIncludes ( "#binaryvoting-miniguide" ) ;
127
130
const hasDisputeResolverMiniGuidePath = hashIncludes ( "#disputeresolver-miniguide" ) ;
128
131
const hasRankedVotingMiniGuidePath = hashIncludes ( "#rankedvoting-miniguide" ) ;
129
132
const hasStakingMiniGuidePath = hashIncludes ( "#staking-miniguide" ) ;
130
133
const hasOnboardingMiniGuidePath = hashIncludes ( "#onboarding-miniguide" ) ;
131
134
const hasNotificationsPath = hashIncludes ( "#notifications" ) ;
135
+ toggleIsJurorLevelsMiniGuideOpen ( hasJurorLevelsMiniGuidePath ) ;
132
136
toggleIsAppealMiniGuideOpen ( hasAppealMiniGuidePath ) ;
133
137
toggleIsBinaryVotingMiniGuideOpen ( hasBinaryVotingMiniGuidePath ) ;
134
138
toggleIsDisputeResolverMiniGuideOpen ( hasDisputeResolverMiniGuidePath ) ;
@@ -139,6 +143,7 @@ const DesktopHeader: React.FC = () => {
139
143
toggleIsSettingsOpen ( hasNotificationsPath ) ;
140
144
setInitialTab ( hasNotificationsPath ? 1 : 0 ) ;
141
145
} , [
146
+ toggleIsJurorLevelsMiniGuideOpen ,
142
147
toggleIsAppealMiniGuideOpen ,
143
148
toggleIsBinaryVotingMiniGuideOpen ,
144
149
toggleIsDisputeResolverMiniGuideOpen ,
@@ -190,6 +195,7 @@ const DesktopHeader: React.FC = () => {
190
195
{ isSettingsOpen && < Settings { ...{ toggleIsSettingsOpen, isSettingsOpen, initialTab } } /> }
191
196
</ PopupContainer >
192
197
) }
198
+ { isJurorLevelsMiniGuideOpen && < JurorLevels toggleMiniGuide = { toggleIsJurorLevelsMiniGuideOpen } /> }
193
199
{ isAppealMiniGuideOpen && < Appeal toggleMiniGuide = { toggleIsAppealMiniGuideOpen } /> }
194
200
{ isBinaryVotingMiniGuideOpen && < BinaryVoting toggleMiniGuide = { toggleIsBinaryVotingMiniGuideOpen } /> }
195
201
{ isDisputeResolverMiniGuideOpen && < DisputeResolver toggleMiniGuide = { toggleIsDisputeResolverMiniGuideOpen } /> }
0 commit comments