diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 331f0117..5f79a61c 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -23,5 +23,6 @@ module.exports = { '@typescript-eslint/no-empty-function': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-unused-vars': 'off', + 'react/react-in-jsx-scope': 'off', }, } diff --git a/.prettierrc b/.prettierrc index 6fed3d0f..c6838a94 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,5 +2,6 @@ "tabWidth": 2, "useTabs": false, "semi": false, - "singleQuote": true + "singleQuote": true, + "jsxSingleQuote": true } diff --git a/Eplant/Eplant.tsx b/Eplant/Eplant.tsx index 882933fb..7f3ed886 100644 --- a/Eplant/Eplant.tsx +++ b/Eplant/Eplant.tsx @@ -170,7 +170,7 @@ export default function Eplant() { } /> - } /> + } /> @@ -199,7 +199,7 @@ function DirectPane() { return loaded ? (
-
-
+
+
{panes[id]?.activeGene ? panes[id]?.activeGene + ' - ' : ''} {views.find((v) => v.id == panes[id]?.view)?.name}
@@ -261,7 +261,7 @@ export function MainEplant() { return ( <> { renderValues.buttons = [ - + , ] }} @@ -402,7 +402,7 @@ function EplantLayout() { ) : (
@@ -463,23 +463,23 @@ function EplantLayout() { renderValues.stickyButtons.push( addTab({ tabsetId: node.getId() })} - size="small" - key="add-tab" + size='small' + key='add-tab' > - + , ) renderValues.buttons.push( - + { const id = node.getSelectedNode()?.getId() if (id) makePopout(id) }} - size="small" - key="make-popout" + size='small' + key='make-popout' > - + , ) diff --git a/Eplant/UI/Dropdown.tsx b/Eplant/UI/Dropdown.tsx index 69f994a3..f5816397 100644 --- a/Eplant/UI/Dropdown.tsx +++ b/Eplant/UI/Dropdown.tsx @@ -70,9 +70,9 @@ export default function Dropdown({ diff --git a/Eplant/views/GetStartedView/component.tsx b/Eplant/views/GetStartedView/component.tsx index 85ab7133..30998800 100644 --- a/Eplant/views/GetStartedView/component.tsx +++ b/Eplant/views/GetStartedView/component.tsx @@ -13,23 +13,23 @@ export default function GetStartedView({ return (
- ePlant 3 - + ePlant 3 + Bioinformatics evolved
- Start - - + Start + + Select a species - - + + Enter a gene of interest - - + + Use the view selector to navigate between views @@ -38,25 +38,25 @@ export default function GetStartedView({ Built by students in the{' '} - + Provart Lab {' '} at the University of Toronto. If you're interested in contributing to the project, visit our{' '} GitHub {' '} page and reach out to us{' '} here diff --git a/Eplant/views/PlantEFP/icon.tsx b/Eplant/views/PlantEFP/icon.tsx index 5a4c51aa..555674a6 100644 --- a/Eplant/views/PlantEFP/icon.tsx +++ b/Eplant/views/PlantEFP/icon.tsx @@ -3,13 +3,13 @@ import * as React from 'react' export default styled((props) => { return ( - + ) })(({ theme }) => ({ diff --git a/Eplant/views/PlantEFP/index.tsx b/Eplant/views/PlantEFP/index.tsx index afe5ab25..f9f0af75 100644 --- a/Eplant/views/PlantEFP/index.tsx +++ b/Eplant/views/PlantEFP/index.tsx @@ -9,7 +9,7 @@ import { EFPViewerData } from '../eFP/Viewer/types' const views: EFPViewerData['views'] = [ { - name: 'AtGenExpress', + name: 'AtGenExpress eFP', id: 'atgenexpress', svgURL: 'https://bar.utoronto.ca/eplant/data/plant/AtGenExpress/Arabidopsis_thaliana.svg', @@ -17,7 +17,7 @@ const views: EFPViewerData['views'] = [ 'https://bar.utoronto.ca/eplant/data/plant/AtGenExpress/Arabidopsis_thaliana.xml', }, { - name: 'Klepikova', + name: 'Klepikova eFP (RNA-Seq data)', id: 'klepikova', svgURL: 'https://bar.utoronto.ca/eplant/data/plant/Klepikova/Arabidopsis_thaliana.svg', diff --git a/Eplant/views/PublicationViewer/GeneRIFs.tsx b/Eplant/views/PublicationViewer/GeneRIFs.tsx index 4c2418d4..19a9c57c 100644 --- a/Eplant/views/PublicationViewer/GeneRIFs.tsx +++ b/Eplant/views/PublicationViewer/GeneRIFs.tsx @@ -19,10 +19,10 @@ const columns: GridColDef[] = [ renderCell: (params: GridRenderCellParams<{ [key: string]: unknown }>) => ( diff --git a/Eplant/views/PublicationViewer/Publications.tsx b/Eplant/views/PublicationViewer/Publications.tsx index a0cb0b11..ebe1842f 100644 --- a/Eplant/views/PublicationViewer/Publications.tsx +++ b/Eplant/views/PublicationViewer/Publications.tsx @@ -38,10 +38,10 @@ const columns: GridColDef[] = [ <> diff --git a/Eplant/views/PublicationViewer/SearchBar.tsx b/Eplant/views/PublicationViewer/SearchBar.tsx index a4fe6196..3894ab57 100644 --- a/Eplant/views/PublicationViewer/SearchBar.tsx +++ b/Eplant/views/PublicationViewer/SearchBar.tsx @@ -4,10 +4,10 @@ import * as React from 'react' export const SearchBar = () => { return ( ) diff --git a/Eplant/views/PublicationViewer/icon.tsx b/Eplant/views/PublicationViewer/icon.tsx index 2efffd71..d6819990 100644 --- a/Eplant/views/PublicationViewer/icon.tsx +++ b/Eplant/views/PublicationViewer/icon.tsx @@ -3,17 +3,17 @@ import * as React from 'react' export default styled(function PublicationViewerIcon(props) { return ( - - - - - + + + + + ) })(({ theme }) => ({ diff --git a/Eplant/views/PublicationViewer/index.tsx b/Eplant/views/PublicationViewer/index.tsx index c3213734..3025bc50 100644 --- a/Eplant/views/PublicationViewer/index.tsx +++ b/Eplant/views/PublicationViewer/index.tsx @@ -21,8 +21,8 @@ const PublicationViewer: View = { return (
setTab(val)}> - - + +