gramene-search 2.1.2 → 2.1.4
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.
- package/.parcel-cache/13f2d5707e7af45c-RequestGraph +0 -0
- package/.parcel-cache/5ae0570a78c0dba3-AssetGraph +0 -0
- package/.parcel-cache/9ac092379278e465-BundleGraph +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-13f2d5707e7af45c.txt +2 -2
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/results/UserGeneLists.js +10 -2
- package/src/components/results/details/Homology.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gramene-search",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "search wrapper for gramene",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"targets": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-bootstrap": "^2.7.2",
|
|
58
58
|
"react-debounce-input": "^3.2.5",
|
|
59
59
|
"react-dom": "^18.3.0",
|
|
60
|
-
"tbrowse": "^2.
|
|
60
|
+
"tbrowse": "^2.1.4",
|
|
61
61
|
"react-ga4": "^2.1.0",
|
|
62
62
|
"react-icons": "^4.3.1",
|
|
63
63
|
"react-markdown": "^5.0.3",
|
|
@@ -67,7 +67,11 @@ const GeneListDisplayComponent = props => {
|
|
|
67
67
|
const [search, setSearch] = useState('');
|
|
68
68
|
const [sort, setSort] = useState({ key: 'createdAt', dir: 'desc' });
|
|
69
69
|
const auth = props.auth;
|
|
70
|
-
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
if (!auth) return;
|
|
72
|
+
const unsubscribe = onAuthStateChanged(auth, (u) => setUser(u));
|
|
73
|
+
return () => unsubscribe();
|
|
74
|
+
}, [auth]);
|
|
71
75
|
|
|
72
76
|
const toggleSort = (key) => setSort(s =>
|
|
73
77
|
s.key === key ? { key, dir: s.dir === 'asc' ? 'desc' : 'asc' } : { key, dir: 'asc' }
|
|
@@ -363,7 +367,11 @@ const GeneListComponent = props => {
|
|
|
363
367
|
const [loading, setLoading] = useState(false); // New loading state
|
|
364
368
|
const [user, setUser] = useState({});
|
|
365
369
|
const auth = props.auth;
|
|
366
|
-
|
|
370
|
+
useEffect(() => {
|
|
371
|
+
if (!auth) return;
|
|
372
|
+
const unsubscribe = onAuthStateChanged(auth, (u) => setUser(u));
|
|
373
|
+
return () => unsubscribe();
|
|
374
|
+
}, [auth]);
|
|
367
375
|
|
|
368
376
|
// Function to handle gene list input
|
|
369
377
|
const handleGeneListChange = (event) => {
|
|
@@ -272,7 +272,7 @@ class Homology extends React.Component {
|
|
|
272
272
|
// }
|
|
273
273
|
return (
|
|
274
274
|
<Detail>
|
|
275
|
-
|
|
275
|
+
{/*<Title key="title">Compara Gene Tree</Title>*/}
|
|
276
276
|
<Description key="description">
|
|
277
277
|
This phylogram shows the relationships between this gene and others similar to it, as determined by Ensembl Compara.
|
|
278
278
|
{flagged > 1 && <Alert variant={'warning'}>This gene was flagged for potential gene structural annotation issues by {flagged} curators</Alert>}
|