From 883306a05633fdff6d795d3bea6fc00d0703976c Mon Sep 17 00:00:00 2001 From: navaneeth Date: Thu, 27 May 2021 07:14:04 +0530 Subject: [PATCH] Remove visibility property --- frontend/src/Editor/Components/components.js | 5 ----- frontend/src/Editor/Inspector/Components/Table.jsx | 1 - 2 files changed, 6 deletions(-) diff --git a/frontend/src/Editor/Components/components.js b/frontend/src/Editor/Components/components.js index ae63fbf5a7..10265fa0e5 100644 --- a/frontend/src/Editor/Components/components.js +++ b/frontend/src/Editor/Components/components.js @@ -7,7 +7,6 @@ export const componentTypes = [ properties: { title: { type: 'string', displayName: 'Title' }, data: { type: 'code', displayName: 'Table data' }, - visible: { type: 'string', displayName: 'Show when' }, loadingState: { type: 'code', displayName: 'Loading state' }, columns: { type: 'array', displayName: 'Table Columns' }, serverSidePagination: { type: 'toggle', displayName: 'Server Side Pagination'}, @@ -81,7 +80,6 @@ export const componentTypes = [ }, properties: { text: { type: 'code', displayName: 'Button Text' }, - visible: { type: 'string', displayName: 'Show when', tip: 'Widget will be hidden if the value of this field is false.' }, loadingState: { type: 'code', displayName: 'Loading State'} }, events: { @@ -384,7 +382,6 @@ export const componentTypes = [ component: 'Text', properties: { text: { type: 'code', displayName: 'Text' }, - visible: { type: 'string', displayName: 'Show when' }, loadingState: { type: 'code', displayName: 'Show loading state' } }, defaultSize: { @@ -424,7 +421,6 @@ export const componentTypes = [ component: 'Image', properties: { source: { type: 'code', displayName: 'URL' }, - visible: { type: 'string', displayName: 'Show when' } }, events: { onClick: { displayName: 'On click'}, @@ -457,7 +453,6 @@ export const componentTypes = [ }, component: 'Container', properties: { - visible: { type: 'string', displayName: 'Show when' } }, events: {}, styles: { diff --git a/frontend/src/Editor/Inspector/Components/Table.jsx b/frontend/src/Editor/Inspector/Components/Table.jsx index 1614f95eea..40a807ac6c 100644 --- a/frontend/src/Editor/Inspector/Components/Table.jsx +++ b/frontend/src/Editor/Inspector/Components/Table.jsx @@ -412,7 +412,6 @@ class Table extends React.Component {
Style
- {renderElement(component, componentMeta, paramUpdated, dataQueries, 'visible', 'properties', currentState)} {renderElement(component, componentMeta, paramUpdated, dataQueries, 'loadingState', 'properties', currentState)} {renderElement(component, componentMeta, paramUpdated, dataQueries, 'textColor', 'styles', currentState)}