File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -147,10 +147,14 @@ const Template: React.FC<ITemplate> = ({
147
147
if ( isOnboarding && location . hash . includes ( "#onboarding" ) ) navigate ( "#" , { replace : true } ) ;
148
148
} , [ location . hash , navigate , isOnboarding ] ) ;
149
149
150
+ const onCloseAndRemoveOnboardingHashPath = ( ) => {
151
+ onClose ( ) ;
152
+ removeOnboardingHashPath ( ) ;
153
+ } ;
154
+
150
155
useClickAway ( containerRef , ( ) => {
151
156
if ( canClose ) {
152
- onClose ( ) ;
153
- removeOnboardingHashPath ( ) ;
157
+ onCloseAndRemoveOnboardingHashPath ( ) ;
154
158
}
155
159
} ) ;
156
160
@@ -168,7 +172,7 @@ const Template: React.FC<ITemplate> = ({
168
172
currentPage = { currentPage }
169
173
callback = { setCurrentPage }
170
174
numPages = { numPages }
171
- onCloseOnLastPage = { onClose }
175
+ onCloseOnLastPage = { onCloseAndRemoveOnboardingHashPath }
172
176
label = { `${ currentPage } /${ numPages } ` }
173
177
/>
174
178
</ LeftContainerHeader >
@@ -177,7 +181,7 @@ const Template: React.FC<ITemplate> = ({
177
181
currentPage = { currentPage }
178
182
callback = { setCurrentPage }
179
183
numPages = { numPages }
180
- onCloseOnLastPage = { onClose }
184
+ onCloseOnLastPage = { onCloseAndRemoveOnboardingHashPath }
181
185
label = { `${ currentPage } /${ numPages } ` }
182
186
/>
183
187
</ LeftContainer >
You can’t perform that action at this time.
0 commit comments