github
499 of 600 branches covered (83.17%)
Branch coverage included in aggregate %.
306 of 993 new or added lines in 10 files covered. (30.82%)
1 existing line in 1 file now uncovered.6756 of 7664 relevant lines covered (88.15%)
18.51 hits per line
|
import { Collapse, Textarea } from "@mantine/core";
|
1✔ |
|
import { FC } from "react";
|
1✔ |
|
import { useFormContext } from "./context";
|
1✔ |
|
|
1✔ |
|
interface Props { |
1✔ |
|
display: boolean;
|
1✔ |
|
} |
1✔ |
|
|
1✔ |
|
const AdvancedFields: FC<Props> = ({ display }) => {
|
1✔ |
NEW
|
const form = useFormContext();
|
× |
NEW
|
|
× |
NEW
|
return (
|
× |
NEW
|
<Collapse in={display}> |
× |
NEW
|
<Textarea |
× |
NEW
|
label="Base layer data"
|
× |
NEW
|
description="Additional data to be interpreted by the base layer"
|
× |
NEW
|
{...form.getInputProps("baseLayerData")}
|
× |
NEW
|
/> |
× |
NEW
|
|
× |
NEW
|
<Textarea |
× |
NEW
|
label="Execution layer data"
|
× |
NEW
|
description="Additional data to be interpreted by the execution layer"
|
× |
NEW
|
{...form.getInputProps("execLayerData")}
|
× |
NEW
|
/> |
× |
NEW
|
</Collapse> |
× |
NEW
|
); |
× |
NEW
|
}; |
× |
|
|
1✔ |
|
export default AdvancedFields; |
1✔ |