- {resultFields.map(({ label, description, value }) => (
+ {resultFields.map(({ label, description, value, valueFooter }) => (
@@ -82,7 +87,14 @@ export default function ResultParams({
{isAnimationActive ? (
) : (
- {value}
+
+ {value}
+ {valueFooter && (
+
+ {valueFooter}
+
+ )}
+
)}
diff --git a/src/SimulationInputParams.tsx b/src/SimulationInputParams.tsx
index 038cb08..bde6ab2 100644
--- a/src/SimulationInputParams.tsx
+++ b/src/SimulationInputParams.tsx
@@ -1,9 +1,9 @@
import React, { useState, useEffect } from "react";
import { InputFieldInterface, CurveParamsInterface } from "./types";
-import InputParams from "./InputParams";
+import InputParamBig from "./InputParamBig";
import { parameterDescriptions } from "./parametersDescriptions";
-export default function CurveDesignInputParams({
+export default function SimulationInputParams({
curveParams,
setCurveParams
}: {
@@ -25,7 +25,7 @@ export default function CurveDesignInputParams({
const inputFields: InputFieldInterface[] = [
{
- label: `${parameterDescriptions.d0.name} (DAI)`,
+ label: `${parameterDescriptions.d0.name}`,
description: parameterDescriptions.d0.text,
value: d0,
setter: setD0,
@@ -35,13 +35,12 @@ export default function CurveDesignInputParams({
suffix: "M",
format: (n: number) => `$${+(n * 1e-6).toFixed(1)}M`,
toText: (n: number) => String(+(n * 1e-6).toFixed(1)),
- toNum: (n: string) => Math.floor(parseFloat(n) * 1e6),
- secondaryColor: true
+ toNum: (n: string) => Math.floor(parseFloat(n) * 1e6)
}
];
return (
-
diff --git a/src/TextWithPopover.tsx b/src/TextWithPopover.tsx
index 781e1e5..1c558de 100644
--- a/src/TextWithPopover.tsx
+++ b/src/TextWithPopover.tsx
@@ -8,7 +8,6 @@ const useStyles = makeStyles(theme => ({
container: {
color: theme.palette.text.secondary,
display: "flex",
- marginLeft: "6px",
fontSize: "0.9rem",
cursor: "pointer",
transition: "color ease 150ms",
@@ -61,7 +60,7 @@ export default function TextWithPopover({
return (