From 468f0054bbf391a2c765386d717a5643be91d2d2 Mon Sep 17 00:00:00 2001 From: Ashwini Date: Tue, 1 Oct 2024 16:06:12 +0000 Subject: [PATCH] extend analyses changes to wellplates and cellLines --- .../cellLines/analysesTab/EditModeRow.js | 51 +++++++------- .../analysesTab/ReactionDetailsContainers.js | 69 ++++++++----------- .../ResearchPlanDetailsContainers.js | 28 +++----- .../analysesTab/WellplateDetailsContainers.js | 30 +++++--- 4 files changed, 84 insertions(+), 94 deletions(-) diff --git a/app/packs/src/apps/mydb/elements/details/cellLines/analysesTab/EditModeRow.js b/app/packs/src/apps/mydb/elements/details/cellLines/analysesTab/EditModeRow.js index 677bfa5669..59b08b4f1e 100644 --- a/app/packs/src/apps/mydb/elements/details/cellLines/analysesTab/EditModeRow.js +++ b/app/packs/src/apps/mydb/elements/details/cellLines/analysesTab/EditModeRow.js @@ -2,31 +2,36 @@ import React from 'react'; import Header from 'src/apps/mydb/elements/details/cellLines/analysesTab/Header'; import ContainerComponent from 'src/components/container/ContainerComponent'; import PropTypes from 'prop-types'; -import { Accordion } from 'react-bootstrap'; +import { Accordion, Card } from 'react-bootstrap'; +import AccordionHeaderWithButtons from 'src/components/common/AccordionHeaderWithButtons'; const EditModeRow = ({ container, handleChange, element, readOnly }) => ( - - -
- - - handleChange(container)} - /> - - + + + +
+ + + + + handleChange(container)} + /> + + + ); EditModeRow.propTypes = { diff --git a/app/packs/src/apps/mydb/elements/details/reactions/analysesTab/ReactionDetailsContainers.js b/app/packs/src/apps/mydb/elements/details/reactions/analysesTab/ReactionDetailsContainers.js index b6abd01cb8..d4a141822f 100644 --- a/app/packs/src/apps/mydb/elements/details/reactions/analysesTab/ReactionDetailsContainers.js +++ b/app/packs/src/apps/mydb/elements/details/reactions/analysesTab/ReactionDetailsContainers.js @@ -188,7 +188,7 @@ export default class ReactionDetailsContainers extends Component { const hasNMRium = isNMRKind(container, chmos) && hasNmriumWrapper; return ( -
+
+
{container.name} {titleKind} {titleStatus} ) @@ -98,7 +103,7 @@ export default class WellplateDetailsContainers extends Component { ident={container.id} />
@@ -139,24 +144,27 @@ export default class WellplateDetailsContainers extends Component { if (analyses_container.length != 1 || analyses_container[0].children.length == 0) { return ( -
+

There are currently no Analyses. - {this.addButton()}

+
+ {this.addButton()} +
+
) } return (
-
+
{this.addButton()}
{ analyses_container[0].children.map((container, key) => { @@ -165,7 +173,7 @@ export default class WellplateDetailsContainers extends Component {