mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 13:30:41 +02:00
udpates dev-guide for adding components
This commit is contained in:
parent
0ecaeac3fb
commit
3e1517e905
@ -118,7 +118,7 @@ import { ChevronDown, ChevronRight } from 'react-bootstrap-icons';
|
|||||||
import { getIdFromFullAccessPath } from '../utils/stringUtils';
|
import { getIdFromFullAccessPath } from '../utils/stringUtils';
|
||||||
import { LevelName } from './NotificationsComponent';
|
import { LevelName } from './NotificationsComponent';
|
||||||
|
|
||||||
interface ImageComponentProps {
|
type ImageComponentProps = {
|
||||||
name: string;
|
name: string;
|
||||||
parentPath?: string;
|
parentPath?: string;
|
||||||
readOnly: boolean;
|
readOnly: boolean;
|
||||||
@ -165,14 +165,15 @@ export const ImageComponent = React.memo((props: ImageComponentProps) => {
|
|||||||
onClick={() => setOpen(!open)}
|
onClick={() => setOpen(!open)}
|
||||||
style={{ cursor: 'pointer' }} // Change cursor style on hover
|
style={{ cursor: 'pointer' }} // Change cursor style on hover
|
||||||
>
|
>
|
||||||
{displayName} {open ? <ChevronDown /> : <ChevronRight />}
|
{displayName}
|
||||||
|
<DocStringComponent docString={docString} />
|
||||||
|
{open ? <ChevronDown /> : <ChevronRight />}
|
||||||
</Card.Header>
|
</Card.Header>
|
||||||
<Collapse in={open}>
|
<Collapse in={open}>
|
||||||
<Card.Body>
|
<Card.Body>
|
||||||
{process.env.NODE_ENV === 'development' && (
|
{process.env.NODE_ENV === 'development' && (
|
||||||
<p>Render count: {renderCount.current}</p>
|
<p>Render count: {renderCount.current}</p>
|
||||||
)}
|
)}
|
||||||
<DocStringComponent docString={docString} />
|
|
||||||
{/* Your component TSX here */}
|
{/* Your component TSX here */}
|
||||||
</Card.Body>
|
</Card.Body>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user