File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ import { Modal as CloseButtonWithRenderOptionModal } from './js/close-button/ren
7
7
import { ModalWrapper as ModalConfigModal } from './js/modal-config' ;
8
8
9
9
const CurrentModal = ( ) => {
10
- switch ( window . location . pathname . replace ( / \/ $ / , '' ) ) {
10
+ switch (
11
+ window . location . pathname
12
+ . replace ( / ^ \/ r e a c t - h o o k s - u s e - m o d a l / , '' )
13
+ . replace ( / \/ $ / , '' )
14
+ ) {
11
15
case '/close-button' : {
12
16
return < CloseButtonModal /> ;
13
17
}
@@ -35,7 +39,10 @@ const Wrapper = ({ children }: PropsWithChildren<{}>) => {
35
39
{ children }
36
40
< nav style = { { marginTop : '40px' } } >
37
41
{ routes . map ( ( route , i ) => (
38
- < a href = { route } style = { { marginLeft : i !== 0 ? '10px' : '' } } >
42
+ < a
43
+ href = { `/react-hooks-use-modal${ route } ` }
44
+ style = { { marginLeft : i !== 0 ? '10px' : '' } }
45
+ >
39
46
{ route }
40
47
</ a >
41
48
) ) }
You can’t perform that action at this time.
0 commit comments