Skip to content

Commit

Permalink
refactor: hoverover text for yield and conversion fields in reaction …
Browse files Browse the repository at this point in the history
…scheme
  • Loading branch information
adambasha0 committed Oct 8, 2024
1 parent e6b2e54 commit 729eeeb
Showing 1 changed file with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,22 +156,28 @@ function GeneralMaterialGroup({
);
}

const yieldConversionRateFields = () => (
<div>
<ToggleButton
isToggledInitial={displayYieldField}
onToggle={switchYield}
onLabel="Yield"
offLabel="C.R."
onColor="transparent"
offColor="transparent"
tooltipOn="Click to switch to conversion rate field"
tooltipOff="Click to switch to yield field"
fontSize="14px"
fontWeight="bold"
/>
</div>
);
const yieldConversionRateFields = () => {
const conversionText = 'Click to switch to conversion field.'
+ ' The conversion will not be displayed as part of the reaction scheme';
const yieldText = 'Click to switch to yield field.'
+ ' The yield will be displayed as part of the reaction scheme';
return (
<div>
<ToggleButton
isToggledInitial={displayYieldField}
onToggle={switchYield}
onLabel="Yield"
offLabel="Conv."
onColor="transparent"
offColor="transparent"
tooltipOn={conversionText}
tooltipOff={yieldText}
fontSize="14px"
fontWeight="bold"
/>
</div>
);
};

if (materialGroup === 'products') {
headers.group = 'Products';
Expand Down

0 comments on commit 729eeeb

Please sign in to comment.