build-computed: remove using validation
This commit is contained in:
parent
4068781ed5
commit
d73526d595
@ -1,6 +1,5 @@
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { useStatus } from 'stores/calculation/statuses/hooks';
|
||||
import { useValidation } from 'stores/calculation/validation/hooks';
|
||||
import { useComputedValue } from 'stores/calculation/values/hooks';
|
||||
import { getComputedValueName } from '../config/map-computed';
|
||||
import type { BuilderProps } from './types';
|
||||
@ -11,10 +10,7 @@ export default function buildComputedValue({ elementName, Component, ...props }:
|
||||
return observer(() => {
|
||||
const { computedValue } = useComputedValue(computedValueName);
|
||||
const { status } = useStatus(elementName);
|
||||
const { isValid, help } = useValidation(elementName);
|
||||
|
||||
return (
|
||||
<Component value={computedValue} status={status} isValid={isValid} help={help} {...props} />
|
||||
);
|
||||
return <Component value={computedValue} status={status} {...props} />;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user