mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
make cross-search visible in non-dev-environments
This commit is contained in:
committed by
Aaro Koivukangas
parent
a08c0f0000
commit
4696496689
+1
-3
@@ -44,9 +44,7 @@ app.use(tokenExtractor)
|
||||
app.use(userExtractor)
|
||||
|
||||
app.use('/user', userRouter)
|
||||
if (RUNNING_ENV == 'dev') {
|
||||
app.use('/crosssearch', crossSearchRouter)
|
||||
}
|
||||
app.use('/crosssearch', crossSearchRouter)
|
||||
app.use('/locality', localityRouter)
|
||||
app.use('/locality-species', localitySpeciesRouter)
|
||||
app.use('/species', speciesRouter)
|
||||
|
||||
@@ -33,7 +33,7 @@ const App = () => {
|
||||
<Container maxWidth="xl" fixed style={{ marginTop: '2em', marginBottom: '2em' }}>
|
||||
<Grid item>
|
||||
<Routes>
|
||||
{ENV == 'dev' && <Route element={crossSearchPage} path="/crosssearch/:id?" />}
|
||||
<Route element={crossSearchPage} path="/crosssearch/:id?" />
|
||||
<Route element={localityPage} path="/locality/:id?" />
|
||||
<Route element={speciesPage} path="/species/:id?" />
|
||||
<Route element={referencePage} path="/reference/:id?" />
|
||||
|
||||
@@ -66,7 +66,6 @@ export const NavBar = () => {
|
||||
)
|
||||
|
||||
const renderLink = (link: LinkDefinition) => {
|
||||
if (ENV !== 'dev' && link.title == 'Cross-Search') return null
|
||||
if (ENV !== 'dev' && link.title == 'Map') return null
|
||||
if (link.children) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user