File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ const App = () => {
3636 < HicetnuncContextProvider >
3737 < Header />
3838 < FeedbackComponent />
39- < HashRouter >
39+ < BrowserRouter >
4040 < Switch >
4141 { routes . map ( ( { exact, path, component : Comp } ) => (
4242 < Route path = { path } exact = { exact } key = { path } component = { Comp } />
4343 ) ) }
4444 </ Switch >
45- </ HashRouter >
45+ </ BrowserRouter >
4646 </ HicetnuncContextProvider >
4747 )
4848}
Original file line number Diff line number Diff line change @@ -306,12 +306,12 @@ export default class Display extends Component {
306306
307307 componentWillMount = async ( ) => {
308308
309- const id = window . location . hash . split ( '/' ) [ 1 ]
309+ const id = window . location . pathname . split ( '/' ) [ 1 ]
310310 // console.log(window.location.pathname.split('/'))
311311
312312 if ( id === 'tz' ) {
313313
314- const wallet = window . location . hash . split ( '/' ) [ 2 ]
314+ const wallet = window . location . pathname . split ( '/' ) [ 2 ]
315315
316316 this . setState ( {
317317 wallet,
@@ -349,7 +349,7 @@ export default class Display extends Component {
349349 }
350350 this . onReady ( )
351351 } else {
352- let res = await fetchSubjkts ( decodeURI ( window . location . hash . split ( '/' ) [ 1 ] ) )
352+ let res = await fetchSubjkts ( decodeURI ( window . location . pathname . split ( '/' ) [ 1 ] ) )
353353 // console.log(decodeURI(window.location.pathname.split('/')[1]))
354354 console . log ( res )
355355 if ( res [ 0 ] . metadata_file ) {
@@ -362,7 +362,7 @@ export default class Display extends Component {
362362 this . setState ( {
363363 wallet : res [ 0 ] . address ,
364364 walletPreview : walletPreview ( res [ 0 ] . address ) ,
365- subjkt : window . location . hash . split ( '/' ) [ 1 ]
365+ subjkt : window . location . pathname . split ( '/' ) [ 1 ]
366366 } )
367367 let resTz = await fetchTz ( this . state . wallet )
368368 console . log ( resTz )
You can’t perform that action at this time.
0 commit comments