diff --git a/web/pgadmin/about/static/js/AboutComponent.jsx b/web/pgadmin/about/static/js/AboutComponent.jsx index dd78b36f0..4b6c2ca85 100644 --- a/web/pgadmin/about/static/js/AboutComponent.jsx +++ b/web/pgadmin/about/static/js/AboutComponent.jsx @@ -11,7 +11,6 @@ import gettext from 'sources/gettext'; import url_for from 'sources/url_for'; import React, { useEffect, useState, useRef } from 'react'; import { Box, Grid, InputLabel } from '@material-ui/core'; -import PropTypes from 'prop-types'; import { DefaultButton } from '../../../static/js/components/Buttons'; import { makeStyles } from '@material-ui/styles'; import { InputText } from '../../../static/js/components/FormComponents'; @@ -149,8 +148,4 @@ export default function AboutComponent() { } ); -} - -AboutComponent.propTypes = { - closeModal: PropTypes.func -}; +} \ No newline at end of file diff --git a/web/pgadmin/dashboard/static/js/SystemStats/CPU.jsx b/web/pgadmin/dashboard/static/js/SystemStats/CPU.jsx index 5962c50cc..f71bdff0c 100644 --- a/web/pgadmin/dashboard/static/js/SystemStats/CPU.jsx +++ b/web/pgadmin/dashboard/static/js/SystemStats/CPU.jsx @@ -239,7 +239,6 @@ export default function CPU({preferences, sid, did, pageVisible, enablePoll=true showTooltip={preferences['graph_mouse_track']} showDataPoints={preferences['graph_data_points']} lineBorderWidth={preferences['graph_line_border_width']} - isDatabase={did > 0} isTest={false} /> } @@ -308,6 +307,5 @@ CPUWrapper.propTypes = { showTooltip: PropTypes.bool.isRequired, showDataPoints: PropTypes.bool.isRequired, lineBorderWidth: PropTypes.number.isRequired, - isDatabase: PropTypes.bool.isRequired, isTest: PropTypes.bool, }; diff --git a/web/pgadmin/dashboard/static/js/SystemStats/Memory.jsx b/web/pgadmin/dashboard/static/js/SystemStats/Memory.jsx index 71778574d..9091826c8 100644 --- a/web/pgadmin/dashboard/static/js/SystemStats/Memory.jsx +++ b/web/pgadmin/dashboard/static/js/SystemStats/Memory.jsx @@ -241,7 +241,6 @@ export default function Memory({preferences, sid, did, pageVisible, enablePoll=t showTooltip={preferences['graph_mouse_track']} showDataPoints={preferences['graph_data_points']} lineBorderWidth={preferences['graph_line_border_width']} - isDatabase={did > 0} isTest={false} /> } @@ -313,6 +312,5 @@ MemoryWrapper.propTypes = { showTooltip: PropTypes.bool.isRequired, showDataPoints: PropTypes.bool.isRequired, lineBorderWidth: PropTypes.number.isRequired, - isDatabase: PropTypes.bool.isRequired, isTest: PropTypes.bool, }; diff --git a/web/pgadmin/dashboard/static/js/SystemStats/Storage.jsx b/web/pgadmin/dashboard/static/js/SystemStats/Storage.jsx index cb042d58e..fdd6906b7 100644 --- a/web/pgadmin/dashboard/static/js/SystemStats/Storage.jsx +++ b/web/pgadmin/dashboard/static/js/SystemStats/Storage.jsx @@ -392,7 +392,6 @@ export default function Storage({preferences, sid, did, pageVisible, enablePoll= showTooltip={preferences['graph_mouse_track']} showDataPoints={preferences['graph_data_points']} lineBorderWidth={preferences['graph_line_border_width']} - isDatabase={did > 0} isTest={false} /> } @@ -565,6 +564,5 @@ StorageWrapper.propTypes = { showTooltip: PropTypes.bool.isRequired, showDataPoints: PropTypes.bool.isRequired, lineBorderWidth: PropTypes.number.isRequired, - isDatabase: PropTypes.bool.isRequired, isTest: PropTypes.bool, }; diff --git a/web/pgadmin/dashboard/static/js/SystemStats/Summary.jsx b/web/pgadmin/dashboard/static/js/SystemStats/Summary.jsx index 49b13a5c0..1edfffba1 100644 --- a/web/pgadmin/dashboard/static/js/SystemStats/Summary.jsx +++ b/web/pgadmin/dashboard/static/js/SystemStats/Summary.jsx @@ -92,23 +92,6 @@ export default function Summary({preferences, sid, did, pageVisible, enablePoll= const [errorMsg, setErrorMsg] = useState(null); const [chartDrawnOnce, setChartDrawnOnce] = useState(false); - const tableHeader = [ - { - Header: gettext('Property'), - accessor: 'name', - sortable: true, - resizable: true, - disableGlobalFilter: false, - }, - { - Header: gettext('Value'), - accessor: 'value', - sortable: true, - resizable: true, - disableGlobalFilter: false, - }, - ]; - useEffect(()=>{ let calcPollDelay = false; if(prevPrefernces) { @@ -256,12 +239,10 @@ export default function Summary({preferences, sid, did, pageVisible, enablePoll= processHandleCount={transformData(processHandleCount, preferences['hpc_stats_refresh'])} osStats={osStats} cpuStats={cpuStats} - tableHeader={tableHeader} errorMsg={errorMsg} showTooltip={preferences['graph_mouse_track']} showDataPoints={preferences['graph_data_points']} lineBorderWidth={preferences['graph_line_border_width']} - isDatabase={did > 0} isTest={false} /> } @@ -317,11 +298,9 @@ SummaryWrapper.propTypes = { processHandleCount: PropTypes.any.isRequired, osStats: PropTypes.any.isRequired, cpuStats: PropTypes.any.isRequired, - tableHeader: PropTypes.any.isRequired, errorMsg: PropTypes.any, showTooltip: PropTypes.bool, showDataPoints: PropTypes.bool, lineBorderWidth: PropTypes.number, - isDatabase: PropTypes.bool, isTest: PropTypes.bool, }; diff --git a/web/pgadmin/misc/bgprocess/static/js/ProcessDetails.jsx b/web/pgadmin/misc/bgprocess/static/js/ProcessDetails.jsx index 0ed4ee6f4..d7bc90210 100644 --- a/web/pgadmin/misc/bgprocess/static/js/ProcessDetails.jsx +++ b/web/pgadmin/misc/bgprocess/static/js/ProcessDetails.jsx @@ -192,8 +192,5 @@ export default function ProcessDetails({data}) { } ProcessDetails.propTypes = { - closeModal: PropTypes.func, data: PropTypes.object, - onOK: PropTypes.func, - setHeight: PropTypes.func }; diff --git a/web/pgadmin/misc/bgprocess/static/js/Processes.jsx b/web/pgadmin/misc/bgprocess/static/js/Processes.jsx index 612ac2cc6..cddf730cc 100644 --- a/web/pgadmin/misc/bgprocess/static/js/Processes.jsx +++ b/web/pgadmin/misc/bgprocess/static/js/Processes.jsx @@ -111,9 +111,6 @@ export default function Processes() { { - pgAdmin.Browser.docker.close(panelId); - }} /> ) @@ -121,8 +118,58 @@ export default function Processes() { }, []); - const columns = useMemo(()=>[ - { + const columns = useMemo(()=>{ + const cellPropTypes = { + row: PropTypes.any, + }; + + const CancelCell = ({ row }) => { + return ( + } + className={classes.stopButton} + disabled={row.original.process_state != BgProcessManagerProcessState.PROCESS_STARTED + || row.original.server_id != null} + onClick={(e) => { + e.preventDefault(); + pgAdmin.Browser.BgProcessManager.stopProcess(row.original.id); + }} + aria-label="Stop Process" + title={gettext('Stop Process')} + > + ); + }; + CancelCell.displayName = 'CancelCell'; + CancelCell.propTypes = cellPropTypes; + + const LogsCell = ({ row }) => { + return ( + } + noBorder + onClick={(e) => { + e.preventDefault(); + onViewDetailsClick(row.original); + }} + aria-label="View details" + title={gettext('View details')} + /> + ); + }; + LogsCell.displayName = 'LogsCell'; + LogsCell.propTypes = cellPropTypes; + + const StatusCell = ({row})=>{ + const [text, bgcolor] = ProcessStateTextAndColor[row.original.process_state]; + return {text}; + }; + StatusCell.displayName = 'StatusCell'; + StatusCell.propTypes = cellPropTypes; + + return [{ accessor: 'stop_process', Header: () => null, sortable: false, @@ -132,25 +179,7 @@ export default function Processes() { maxWidth: 35, minWidth: 35, id: 'btn-stop', - // eslint-disable-next-line react/display-name - Cell: ({ row }) => { - return ( - } - className={classes.stopButton} - disabled={row.original.process_state != BgProcessManagerProcessState.PROCESS_STARTED - || row.original.server_id != null} - onClick={(e) => { - e.preventDefault(); - pgAdmin.Browser.BgProcessManager.stopProcess(row.original.id); - }} - aria-label="Stop Process" - title={gettext('Stop Process')} - > - ); - }, + Cell: CancelCell, }, { accessor: 'view_details', @@ -162,22 +191,7 @@ export default function Processes() { maxWidth: 35, minWidth: 35, id: 'btn-logs', - // eslint-disable-next-line react/display-name - Cell: ({ row }) => { - return ( - } - noBorder - onClick={(e) => { - e.preventDefault(); - onViewDetailsClick(row.original); - }} - aria-label="View details" - title={gettext('View details')} - /> - ); - }, + Cell: LogsCell, }, { Header: gettext('PID'), @@ -235,10 +249,7 @@ export default function Processes() { minWidth: 120, accessor: (row)=>ProcessStateTextAndColor[row.process_state][0], dataClassName: classes.noPadding, - Cell: ({row})=>{ - const [text, bgcolor] = ProcessStateTextAndColor[row.original.process_state]; - return {text}; - }, + Cell: StatusCell, }, { Header: gettext('Time Taken (sec)'), @@ -246,8 +257,8 @@ export default function Processes() { sortable: true, resizable: true, disableGlobalFilter: true, - }, - ], []); + }]; + }, []); const updateList = ()=>{ if(pgAdmin.Browser.BgProcessManager.procList) { @@ -310,12 +321,3 @@ export default function Processes() { ); } - -Processes.propTypes = { - res: PropTypes.array, - nodeData: PropTypes.object, - treeNodeInfo: PropTypes.object, - node: PropTypes.func, - item: PropTypes.object, - row: PropTypes.object, -}; diff --git a/web/pgadmin/misc/cloud/static/js/CloudWizard.jsx b/web/pgadmin/misc/cloud/static/js/CloudWizard.jsx index 89c266103..37c710a7f 100644 --- a/web/pgadmin/misc/cloud/static/js/CloudWizard.jsx +++ b/web/pgadmin/misc/cloud/static/js/CloudWizard.jsx @@ -461,10 +461,10 @@ export default function CloudWizard({ nodeInfo, nodeData, onClose, cloudPanelId} {cloudProvider == CLOUD_PROVIDERS.AWS && } { cloudProvider == CLOUD_PROVIDERS.AZURE && - + } - {cloudProvider == CLOUD_PROVIDERS.GOOGLE && } + {cloudProvider == CLOUD_PROVIDERS.GOOGLE && } @@ -582,6 +582,5 @@ CloudWizard.propTypes = { nodeInfo: PropTypes.object, nodeData: PropTypes.object, onClose: PropTypes.func, - cloudPanel: PropTypes.object, cloudPanelId: PropTypes.string, }; diff --git a/web/pgadmin/misc/cloud/static/js/azure.js b/web/pgadmin/misc/cloud/static/js/azure.js index a1c102f2e..16f0a741b 100644 --- a/web/pgadmin/misc/cloud/static/js/azure.js +++ b/web/pgadmin/misc/cloud/static/js/azure.js @@ -103,8 +103,6 @@ export function AzureCredentials(props) { />; } AzureCredentials.propTypes = { - nodeInfo: PropTypes.object, - nodeData: PropTypes.object, cloudProvider: PropTypes.string, setAzureCredData: PropTypes.func }; @@ -206,7 +204,6 @@ AzureInstanceDetails.propTypes = { cloudProvider: PropTypes.string, setAzureInstanceData: PropTypes.func, hostIP: PropTypes.string, - subscriptions: PropTypes.array, azureInstanceData: PropTypes.object }; diff --git a/web/pgadmin/misc/cloud/static/js/google.js b/web/pgadmin/misc/cloud/static/js/google.js index c594d7383..c090cb297 100644 --- a/web/pgadmin/misc/cloud/static/js/google.js +++ b/web/pgadmin/misc/cloud/static/js/google.js @@ -119,8 +119,6 @@ export function GoogleCredentials(props) { />; } GoogleCredentials.propTypes = { - nodeInfo: PropTypes.object, - nodeData: PropTypes.object, cloudProvider: PropTypes.string, setGoogleCredData: PropTypes.func }; @@ -197,7 +195,6 @@ GoogleInstanceDetails.propTypes = { cloudProvider: PropTypes.string, setGoogleInstanceData: PropTypes.func, hostIP: PropTypes.string, - subscriptions: PropTypes.array, googleInstanceData: PropTypes.object }; diff --git a/web/pgadmin/misc/dependencies/static/js/Dependencies.jsx b/web/pgadmin/misc/dependencies/static/js/Dependencies.jsx index a06427332..cbfa59ed2 100644 --- a/web/pgadmin/misc/dependencies/static/js/Dependencies.jsx +++ b/web/pgadmin/misc/dependencies/static/js/Dependencies.jsx @@ -181,7 +181,6 @@ function Dependencies({ nodeData, nodeItem, node, treeNodeInfo, isActive, isStal } Dependencies.propTypes = { - res: PropTypes.array, nodeData: PropTypes.object, treeNodeInfo: PropTypes.object, node: PropTypes.func, diff --git a/web/pgadmin/misc/dependents/static/js/Dependents.jsx b/web/pgadmin/misc/dependents/static/js/Dependents.jsx index 60dc4724b..d59f1df1c 100644 --- a/web/pgadmin/misc/dependents/static/js/Dependents.jsx +++ b/web/pgadmin/misc/dependents/static/js/Dependents.jsx @@ -185,7 +185,6 @@ function Dependents({ nodeData, nodeItem, node, treeNodeInfo, isActive, isStale, } Dependents.propTypes = { - res: PropTypes.array, nodeData: PropTypes.object, treeNodeInfo: PropTypes.object, node: PropTypes.func, diff --git a/web/pgadmin/misc/properties/CollectionNodeProperties.jsx b/web/pgadmin/misc/properties/CollectionNodeProperties.jsx index d9a879de2..a9daa8145 100644 --- a/web/pgadmin/misc/properties/CollectionNodeProperties.jsx +++ b/web/pgadmin/misc/properties/CollectionNodeProperties.jsx @@ -215,6 +215,14 @@ export default function CollectionNodeProperties({ schemaRef.current?.fields.forEach((field) => { if (node.columns.indexOf(field.id) > -1) { if (field.label.indexOf('?') > -1) { + const Cell = ({value})=>{ + return ; + }; + Cell.displayName = 'StatusCell'; + Cell.propTypes = { + value: PropTypes.any, + }; + column = { Header: field.label, accessor: field.id, @@ -222,10 +230,7 @@ export default function CollectionNodeProperties({ resizable: true, disableGlobalFilter: false, minWidth: 0, - // eslint-disable-next-line react/display-name - Cell: ({ value }) => { - return (); - } + Cell: Cell }; } else { column = { @@ -359,16 +364,9 @@ export default function CollectionNodeProperties({ CollectionNodeProperties.propTypes = { node: PropTypes.func, - itemData: PropTypes.object, nodeData: PropTypes.object, treeNodeInfo: PropTypes.object, nodeItem: PropTypes.object, - preferences: PropTypes.object, - sid: PropTypes.number, - did: PropTypes.number, - row: PropTypes.object, - serverConnected: PropTypes.bool, - value: PropTypes.bool, isActive: PropTypes.bool, isStale: PropTypes.bool, setIsStale: PropTypes.func, diff --git a/web/pgadmin/misc/sql/static/js/SQL.jsx b/web/pgadmin/misc/sql/static/js/SQL.jsx index 5347848af..0303001ff 100644 --- a/web/pgadmin/misc/sql/static/js/SQL.jsx +++ b/web/pgadmin/misc/sql/static/js/SQL.jsx @@ -105,12 +105,9 @@ function SQL({nodeData, node, treeNodeInfo, isActive, isStale, setIsStale}) { } SQL.propTypes = { - res: PropTypes.array, nodeData: PropTypes.object, treeNodeInfo: PropTypes.object, node: PropTypes.func, - dbConnected: PropTypes.bool, - did: PropTypes.number, isActive: PropTypes.bool, isStale: PropTypes.bool, setIsStale: PropTypes.func, diff --git a/web/pgadmin/misc/statistics/static/js/Statistics.jsx b/web/pgadmin/misc/statistics/static/js/Statistics.jsx index b4724fd64..4758ca503 100644 --- a/web/pgadmin/misc/statistics/static/js/Statistics.jsx +++ b/web/pgadmin/misc/statistics/static/js/Statistics.jsx @@ -89,8 +89,11 @@ function getColumn(data, singleLineStatistics, prettifyFields=[]) { columns.forEach((c)=>{ // Prettify the cell view if(prettifyFields.includes(c.Header)) { - // eslint-disable-next-line react/display-name,react/prop-types c.Cell = ({value})=><>{toPrettySize(value)}; + c.Cell.displayName = 'Cell'; + c.Cell.propTypes = { + value: PropTypes.any, + }; } }); return columns; @@ -249,7 +252,6 @@ function Statistics({ nodeData, nodeItem, node, treeNodeInfo, isActive, isStale, } Statistics.propTypes = { - res: PropTypes.array, nodeData: PropTypes.object, nodeItem: PropTypes.object, treeNodeInfo: PropTypes.object, diff --git a/web/pgadmin/static/js/Dialogs/ChangeOwnershipContent.jsx b/web/pgadmin/static/js/Dialogs/ChangeOwnershipContent.jsx index 3efc7f133..14930decd 100644 --- a/web/pgadmin/static/js/Dialogs/ChangeOwnershipContent.jsx +++ b/web/pgadmin/static/js/Dialogs/ChangeOwnershipContent.jsx @@ -80,7 +80,6 @@ export default function ChangeOwnershipContent({onSave, onClose, deletedUser, us ChangeOwnershipContent.propTypes = { onSave: PropTypes.func, onClose: PropTypes.func, - currentUser: PropTypes.string, userList: PropTypes.array, noOfSharedServers: PropTypes.number, deletedUser: PropTypes.string diff --git a/web/pgadmin/static/js/Dialogs/ChangePasswordContent.jsx b/web/pgadmin/static/js/Dialogs/ChangePasswordContent.jsx index 2744eebb9..7e6a3747d 100644 --- a/web/pgadmin/static/js/Dialogs/ChangePasswordContent.jsx +++ b/web/pgadmin/static/js/Dialogs/ChangePasswordContent.jsx @@ -102,8 +102,6 @@ export default function ChangePasswordContent({getInitData=() => { /*This is int ChangePasswordContent.propTypes = { onSave: PropTypes.func, onClose: PropTypes.func, - userName: PropTypes.string, - isPgpassFileUsed: PropTypes.bool, getInitData: PropTypes.func, hasCsrfToken: PropTypes.bool, showUser: PropTypes.bool diff --git a/web/pgadmin/static/js/Dialogs/NamedRestoreContent.jsx b/web/pgadmin/static/js/Dialogs/NamedRestoreContent.jsx index c57499d3f..c2b165c1c 100644 --- a/web/pgadmin/static/js/Dialogs/NamedRestoreContent.jsx +++ b/web/pgadmin/static/js/Dialogs/NamedRestoreContent.jsx @@ -84,7 +84,6 @@ export default function NamedRestoreContent({closeModal, onOK, setHeight}) { NamedRestoreContent.propTypes = { closeModal: PropTypes.func, - data: PropTypes.object, onOK: PropTypes.func, setHeight: PropTypes.func }; diff --git a/web/pgadmin/static/js/components/KeyboardShortcuts.jsx b/web/pgadmin/static/js/components/KeyboardShortcuts.jsx index 562c68b58..daee13320 100644 --- a/web/pgadmin/static/js/components/KeyboardShortcuts.jsx +++ b/web/pgadmin/static/js/components/KeyboardShortcuts.jsx @@ -128,7 +128,6 @@ export default function KeyboardShortcuts({ value, onChange, fields, title }) { KeyboardShortcuts.propTypes = { value: PropTypes.object, onChange: PropTypes.func, - controlProps: PropTypes.object, fields: PropTypes.array, title: PropTypes.string }; diff --git a/web/pgadmin/static/js/components/ObjectBreadcrumbs.jsx b/web/pgadmin/static/js/components/ObjectBreadcrumbs.jsx index 5da83dab1..940a2e811 100644 --- a/web/pgadmin/static/js/components/ObjectBreadcrumbs.jsx +++ b/web/pgadmin/static/js/components/ObjectBreadcrumbs.jsx @@ -3,7 +3,6 @@ import React, { useState, useEffect } from 'react'; import AccountTreeIcon from '@material-ui/icons/AccountTree'; import CommentIcon from '@material-ui/icons/Comment'; import ArrowForwardIosRoundedIcon from '@material-ui/icons/ArrowForwardIosRounded'; -import PropTypes from 'prop-types'; import { usePgAdmin } from '../../../static/js/BrowserComponent'; import usePreferences from '../../../preferences/static/js/store'; @@ -88,8 +87,4 @@ export default function ObjectBreadcrumbs() { ); -} - -ObjectBreadcrumbs.propTypes = { - pgAdmin: PropTypes.object, -}; +} \ No newline at end of file diff --git a/web/pgadmin/static/js/components/ReactCodeMirror/components/FindDialog.jsx b/web/pgadmin/static/js/components/ReactCodeMirror/components/FindDialog.jsx index 073f44184..43c24dcdc 100644 --- a/web/pgadmin/static/js/components/ReactCodeMirror/components/FindDialog.jsx +++ b/web/pgadmin/static/js/components/ReactCodeMirror/components/FindDialog.jsx @@ -199,5 +199,4 @@ FindDialog.propTypes = { show: PropTypes.bool, replace: PropTypes.bool, onClose: PropTypes.func, - selFindVal: PropTypes.string, }; diff --git a/web/pgadmin/static/js/components/ReactCodeMirror/components/GotoDialog.jsx b/web/pgadmin/static/js/components/ReactCodeMirror/components/GotoDialog.jsx index 13838b1a7..42d412f3e 100644 --- a/web/pgadmin/static/js/components/ReactCodeMirror/components/GotoDialog.jsx +++ b/web/pgadmin/static/js/components/ReactCodeMirror/components/GotoDialog.jsx @@ -89,7 +89,5 @@ export default function GotoDialog({editor, show, onClose}) { GotoDialog.propTypes = { editor: PropTypes.object, show: PropTypes.bool, - replace: PropTypes.bool, onClose: PropTypes.func, - selFindVal: PropTypes.string, }; diff --git a/web/pgadmin/static/js/helpers/ModalProvider.jsx b/web/pgadmin/static/js/helpers/ModalProvider.jsx index 751eca40a..ba95c1e0d 100644 --- a/web/pgadmin/static/js/helpers/ModalProvider.jsx +++ b/web/pgadmin/static/js/helpers/ModalProvider.jsx @@ -316,7 +316,6 @@ ModalContainer.propTypes = { title: CustomPropTypes.children, content: PropTypes.func, fullScreen: PropTypes.bool, - maxWidth: PropTypes.string, isFullWidth: PropTypes.bool, showFullScreen: PropTypes.bool, isResizeable: PropTypes.bool, diff --git a/web/pgadmin/tools/schema_diff/static/js/components/ResultGridComponent.jsx b/web/pgadmin/tools/schema_diff/static/js/components/ResultGridComponent.jsx index 2996972a7..bc081e063 100644 --- a/web/pgadmin/tools/schema_diff/static/js/components/ResultGridComponent.jsx +++ b/web/pgadmin/tools/schema_diff/static/js/components/ResultGridComponent.jsx @@ -771,8 +771,4 @@ ResultGridComponent.propTypes = { transId: PropTypes.number, sourceData: PropTypes.object, targetData: PropTypes.object, - 'sourceData.sid': PropTypes.number, - 'sourceData.did': PropTypes.number, - 'targetData.sid': PropTypes.number, - 'targetData.did': PropTypes.number, }; diff --git a/web/pgadmin/tools/schema_diff/static/js/components/SchemaDiffCompare.jsx b/web/pgadmin/tools/schema_diff/static/js/components/SchemaDiffCompare.jsx index 425f53473..d028d21ed 100644 --- a/web/pgadmin/tools/schema_diff/static/js/components/SchemaDiffCompare.jsx +++ b/web/pgadmin/tools/schema_diff/static/js/components/SchemaDiffCompare.jsx @@ -810,6 +810,4 @@ export function SchemaDiffCompare({ params }) { SchemaDiffCompare.propTypes = { params: PropTypes.object, - 'params.transId': PropTypes.number, - }; diff --git a/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx b/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx index 8de53ede7..e9e4281d6 100644 --- a/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx +++ b/web/pgadmin/tools/sqleditor/static/js/components/sections/ResultSetToolbar.jsx @@ -25,7 +25,6 @@ import { useKeyboardShortcuts } from '../../../../../../static/js/custom_hooks'; import {shortcut_key} from 'sources/keyboard_shortcuts'; import CopyData from '../QueryToolDataGrid/CopyData'; import PropTypes from 'prop-types'; -import CustomPropTypes from '../../../../../../static/js/custom_prop_types'; const useStyles = makeStyles((theme)=>({ root: { @@ -204,7 +203,6 @@ export function ResultSetToolbar({canEdit, totalRowCount}) { } ResultSetToolbar.propTypes = { - containerRef: CustomPropTypes.ref, canEdit: PropTypes.bool, totalRowCount: PropTypes.number, };