Update pharmacokinetic parameters/calculations, add advanced settings, add disclaimer/citations, many improvements
This commit is contained in:
@@ -140,18 +140,6 @@ const FormNumericInput = React.forwardRef<HTMLInputElement, NumericInputProps>(
|
||||
setShowWarning(hasWarning)
|
||||
}
|
||||
|
||||
// Ensure value is consistently formatted to the required decimal places
|
||||
React.useEffect(() => {
|
||||
const strVal = String(value)
|
||||
if (strVal === '') return
|
||||
const num = Number(strVal)
|
||||
if (isNaN(num)) return
|
||||
const formatted = num.toFixed(decimalPlaces)
|
||||
if (strVal !== formatted) {
|
||||
onChange(formatted)
|
||||
}
|
||||
}, [value, decimalPlaces, onChange])
|
||||
|
||||
const getAlignmentClass = () => {
|
||||
switch (align) {
|
||||
case 'left': return 'text-left'
|
||||
|
||||
Reference in New Issue
Block a user