PT Viewer implementation

This commit is contained in:
tugcekucukoglu 2024-09-13 17:23:04 +03:00
parent 0f9cd792c5
commit c6dcd27527
2 changed files with 63 additions and 6 deletions

View file

@ -19,12 +19,14 @@ export const getPTOptions = (name) => {
objToReplace.type = prop.type;
}
data.push({
value: i + 1,
label: prop.name,
options: hasSubComp ? subOptions?.props : options?.props,
description: prop.description
});
if (!prop.deprecated) {
data.push({
value: i + 1,
label: prop.name,
options: hasSubComp ? subOptions?.props : options?.props,
description: prop.description
});
}
} else {
data.push({
value: i + 1,