File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
import h from "@macrostrat/hyper" ;
2
2
import React from "react" ;
3
- import { Link , useParams } from "react-router-dom" ;
3
+ import { useParams } from "react-router-dom" ;
4
+ import { Link as VikeLink } from "~/renderer/Link" ;
4
5
import Chart from "./Chart" ;
5
6
import Footer from "./Footer" ;
6
7
import { SiftLink } from "./Link" ;
@@ -284,13 +285,13 @@ class _Column extends React.Component {
284
285
< PrevalentTaxa data = { this . state . prevalentTaxa } />
285
286
286
287
< StratColumn data = { this . state . units } />
287
- < Link
288
- to = { "/column /" + this . state . properties . col_id }
288
+ < VikeLink
289
+ href = { "/columns /" + this . state . properties . col_id }
289
290
target = "_blank"
290
291
className = "normalize-link alternate-column"
291
292
>
292
293
Alternate column view
293
- </ Link >
294
+ </ VikeLink >
294
295
</ div >
295
296
296
297
< Footer data = { this . state . refs } />
Original file line number Diff line number Diff line change @@ -124,8 +124,7 @@ class App extends React.Component {
124
124
this . getNavigateURL = this . getNavigateURL . bind ( this ) ;
125
125
}
126
126
getNavigateURL ( item ) {
127
- let prefix =
128
- siftPrefix + "/" + this . props . categoryRouteLookup [ item . dataset ] + "/" ;
127
+ let prefix = "/" + this . props . categoryRouteLookup [ item . dataset ] + "/" ;
129
128
if ( item . id != 0 ) {
130
129
return prefix + item . id ;
131
130
} else {
@@ -226,6 +225,7 @@ function TopBarAutocomplete(props) {
226
225
const finish = React . useCallback (
227
226
( item ) => {
228
227
let url = props . getNavigateURL ( item ) ;
228
+ console . log ( url ) ;
229
229
navigate ( url ) ;
230
230
} ,
231
231
[ navigate ]
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export function Link(props: {
5
5
href ?: string ;
6
6
className ?: string ;
7
7
children : React . ReactNode ;
8
+ target ?: string ;
8
9
} ) {
9
10
const pageContext = usePageContext ( ) ;
10
11
const className = [
You can’t perform that action at this time.
0 commit comments