gramene-search 1.6.32 → 1.6.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
@@ -1,2 +1,2 @@
1
- 242994512
2
- 1752250063384523000
1
+ 261726238
2
+ 1752850857280378000
package/dist/index.js CHANGED
@@ -2279,6 +2279,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2279
2279
  const [atlasExperiment, setAtlasExperiment] = (0, $gXNCa$react.useState)(null);
2280
2280
  const [atlasExperimentList, setAtlasExperimentList] = (0, $gXNCa$react.useState)([]);
2281
2281
  const [isLocal, setIsLocal] = (0, $gXNCa$react.useState)(false);
2282
+ const [activeTab, setActiveTab] = (0, $gXNCa$react.useState)('gene');
2282
2283
  const handleLocalAPIChange = (event)=>{
2283
2284
  setIsLocal(event.target.checked);
2284
2285
  };
@@ -2309,6 +2310,8 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2309
2310
  // }
2310
2311
  if (paralogs.length > 1 && atlasExperiment) paralogs_url = `https://dev.gramene.org/static/atlasWidget.html?genes=${paralogs.join(' ')}&experiment=${atlasExperiment}&localAPI=${isLocal}`;
2311
2312
  return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tabs), {
2313
+ activeKey: activeTab,
2314
+ onSelect: (k)=>setActiveTab(k),
2312
2315
  children: [
2313
2316
  paralogs_url && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)((0, $gXNCa$reactbootstrap.Tab), {
2314
2317
  tabClassName: "gxa",
@@ -2328,7 +2331,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2328
2331
  ]
2329
2332
  }, idx))
2330
2333
  }),
2331
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
2334
+ activeTab === "paralogs" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
2332
2335
  url: paralogs_url
2333
2336
  })
2334
2337
  ]
@@ -2337,7 +2340,7 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
2337
2340
  tabClassName: "gxa",
2338
2341
  eventKey: "gene",
2339
2342
  title: "All Studies",
2340
- children: /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
2343
+ children: activeTab === "gene" && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$DynamicIframe, {
2341
2344
  url: gene_url
2342
2345
  })
2343
2346
  }, "gxa"),