Skip to content

Commit

Permalink
link math.js from node
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Nov 20, 2023
1 parent f0313e7 commit 05f0f09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion editor.planx.uk/src/@planx/components/Calculate/Editor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { styled } from "@mui/material/styles";
import Typography from "@mui/material/Typography";
import { TYPES } from "@planx/components/types";
import {
EditorProps,
Expand Down Expand Up @@ -69,7 +70,11 @@ export default function Component(props: Props) {
return (
<form onSubmit={formik.handleSubmit} id="modal">
<ModalSection>
<ModalSectionContent title="Calculate" Icon={ICONS[TYPES.Calculate]} />
<ModalSectionContent title="Calculate" Icon={ICONS[TYPES.Calculate]}>
<Typography variant="body2">
This component does math! Write formulas using <a href="https://mathjs.org/index.html" target="_blank">Math.js</a>, omitting the <code>math.</code> prefix
</Typography>
</ModalSectionContent>
<ModalSectionContent title="Output">
<InputRow>
<Input
Expand Down

0 comments on commit 05f0f09

Please sign in to comment.