Skip to content

Commit

Permalink
Hardcode map link (#474)
Browse files Browse the repository at this point in the history
* Hardcode map link

* Add build dependency for compile:check target
  • Loading branch information
dmfalke authored Sep 6, 2023
1 parent b6b7ecd commit 61dd510
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
5 changes: 5 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
"^build-npm-modules"
]
},
"compile:check": {
"dependsOn": [
"^build-npm-modules"
]
},
"bundle:dev": {
"dependsOn": [
"^build-npm-modules"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,9 @@ const useHeaderMenuItems = (
(q) => q.urlSegment === QUESTION_FOR_MAP_DATASETS
)
);
const showInteractiveMaps = mapMenuItemsQuestion != null;
const mapMenuItems = useMapMenuItems(mapMenuItemsQuestion);
// const showInteractiveMaps = mapMenuItemsQuestion != null;
// const mapMenuItems = useMapMenuItems(mapMenuItemsQuestion);
const showInteractiveMaps = projectId === VectorBase && !!useEda;

// type: reactRoute, webAppRoute, externalLink, subMenu, custom
const fullMenuItemEntries: HeaderMenuItemEntry[] = [
Expand Down Expand Up @@ -577,24 +578,37 @@ const useHeaderMenuItems = (
include: [EuPathDB, UniDB],
},
},
// {
// key: 'maps-alpha',
// display: (
// <>
// Interactive maps <img alt="BETA" src={betaImage} />
// </>
// ),
// type: 'subMenu',
// metadata: {
// test: () => showInteractiveMaps,
// },
// items: mapMenuItems ?? [
// {
// key: 'maps-loading',
// type: 'custom',
// display: <Loading radius={4} />,
// },
// ],
// },
{
key: 'maps-alpha',
type: 'reactRoute',
display: (
<>
Interactive maps <img alt="BETA" src={betaImage} />
<img alt="BETA" src={betaImage} /> Multi-study Interactive Map
</>
),
type: 'subMenu',
key: 'map--mega-study',
url: '/workspace/maps/DS_480c976ef9/new',
metadata: {
test: () => showInteractiveMaps,
},
items: mapMenuItems ?? [
{
key: 'maps-loading',
type: 'custom',
display: <Loading radius={4} />,
},
],
},
{
key: 'pubcrawler',
Expand Down

0 comments on commit 61dd510

Please sign in to comment.