mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-19 00:18:40 +01:00
chore: changing parent_path to parentPath
This commit is contained in:
@@ -5,7 +5,7 @@ import { DocStringComponent } from './DocStringComponent';
|
||||
|
||||
interface EnumComponentProps {
|
||||
name: string;
|
||||
parent_path: string;
|
||||
parentPath: string;
|
||||
value: string;
|
||||
docString?: string;
|
||||
enumDict: Record<string, string>;
|
||||
@@ -18,14 +18,14 @@ export const EnumComponent = React.memo((props: EnumComponentProps) => {
|
||||
renderCount.current++;
|
||||
});
|
||||
|
||||
const { name, parent_path, value, docString, enumDict } = props;
|
||||
const { name, parentPath: parentPath, value, docString, enumDict } = props;
|
||||
|
||||
const handleValueChange = (newValue: string) => {
|
||||
emit_update(name, parent_path, newValue);
|
||||
emit_update(name, parentPath, newValue);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={'enumComponent'} id={parent_path.concat('.' + name)}>
|
||||
<div className={'enumComponent'} id={parentPath.concat('.' + name)}>
|
||||
{process.env.NODE_ENV === 'development' && (
|
||||
<p>Render count: {renderCount.current}</p>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user