+ {keys.map((key, i)=>{
+ return
{key}
;
+ })}
+
+ >
+ );
+}
+
+ShortcutTitle.propTypes = {
+ title: PropTypes.string,
+ shortcut: CustomPropTypes.shortcut,
+ accessKey: PropTypes.string,
+};
diff --git a/web/pgadmin/static/js/components/TabPanel.jsx b/web/pgadmin/static/js/components/TabPanel.jsx
index 6625fa028..406eba41c 100644
--- a/web/pgadmin/static/js/components/TabPanel.jsx
+++ b/web/pgadmin/static/js/components/TabPanel.jsx
@@ -13,12 +13,9 @@ import clsx from 'clsx';
import PropTypes from 'prop-types';
import CustomPropTypes from '../custom_prop_types';
-const useStyles = makeStyles((theme)=>({
+export const tabPanelStyles = makeStyles((theme)=>({
root: {
- height: '100%',
- padding: theme.spacing(1),
- overflow: 'auto',
- backgroundColor: theme.palette.grey[400]
+ ...theme.mixins.tabPanel,
},
content: {
height: '100%',
@@ -27,7 +24,7 @@ const useStyles = makeStyles((theme)=>({
/* Material UI does not have any tabpanel component, we create one for us */
export default function TabPanel({children, classNameRoot, className, value, index}) {
- const classes = useStyles();
+ const classes = tabPanelStyles();
const active = value === index;
return (