frontend: adding MethodComponent

This commit is contained in:
Mose Müller
2023-08-02 12:06:20 +02:00
parent b503a5018e
commit fd26a410fd
2 changed files with 99 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import React, { useEffect, useRef } from 'react';
import { OverlayTrigger, Badge, Tooltip, ToggleButton } from 'react-bootstrap';
import { ToggleButton } from 'react-bootstrap';
import { socket } from '../socket';
import { DocStringComponent } from './DocStringComponent';
@@ -31,7 +31,7 @@ export const ButtonComponent = React.memo((props: ButtonComponentProps) => {
};
return (
<div className={'component boolean'} id={parent_path.concat('.' + name)}>
<div className={'button'} id={parent_path.concat('.' + name)}>
<p>Render count: {renderCount.current}</p>
<DocStringComponent docString={docString} />