diff --git a/frontend/src/components/GenericComponent.tsx b/frontend/src/components/GenericComponent.tsx index f477fca..6338c3c 100644 --- a/frontend/src/components/GenericComponent.tsx +++ b/frontend/src/components/GenericComponent.tsx @@ -238,14 +238,13 @@ export const GenericComponent = React.memo( ); } else if (attribute.type === 'ColouredEnum') { diff --git a/frontend/src/components/ImageComponent.tsx b/frontend/src/components/ImageComponent.tsx index 43c5af6..c3f2d02 100644 --- a/frontend/src/components/ImageComponent.tsx +++ b/frontend/src/components/ImageComponent.tsx @@ -8,7 +8,6 @@ type ImageComponentProps = { name: string; parentPath: string; value: string; - readOnly: boolean; docString: string; format: string; addNotification: (message: string, levelname?: LevelName) => void; @@ -35,9 +34,6 @@ export const ImageComponent = React.memo((props: ImageComponentProps) => { return (
- {process.env.NODE_ENV === 'development' && ( -
Render count: {renderCount.current}
- )} setOpen(!open)} @@ -52,7 +48,6 @@ export const ImageComponent = React.memo((props: ImageComponentProps) => { {process.env.NODE_ENV === 'development' && (

Render count: {renderCount.current}

)} - {/* Your component JSX here */} {format === '' && value === '' ? (

No image set in the backend.

) : ( diff --git a/frontend/src/components/MethodComponent.tsx b/frontend/src/components/MethodComponent.tsx index a8051f1..5ff062c 100644 --- a/frontend/src/components/MethodComponent.tsx +++ b/frontend/src/components/MethodComponent.tsx @@ -39,15 +39,6 @@ export const MethodComponent = React.memo((props: MethodProps) => { triggerNotification(); }; - const formContent = ( -
- -
- ); - useEffect(() => { renderCount.current++; }); @@ -57,7 +48,12 @@ export const MethodComponent = React.memo((props: MethodProps) => { {process.env.NODE_ENV === 'development' && (
Render count: {renderCount.current}
)} -
{formContent}
+
+ +
); });