Skip to content

Commit

Permalink
Stop passing tReady through to the MUI menu component.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 8, 2024
1 parent dd5de5b commit 92010e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/WindowList.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class WindowList extends Component {
*/
render() {
const {
container, handleClose, windowIds, focusWindow, focusedWindowId, t,
container, handleClose, windowIds, focusWindow, focusedWindowId, t, tReady,
...menuProps
} = this.props;

Expand Down Expand Up @@ -73,6 +73,7 @@ WindowList.propTypes = {
handleClose: PropTypes.func.isRequired,
t: PropTypes.func,
titles: PropTypes.objectOf(PropTypes.string),
tReady: PropTypes.bool,
windowIds: PropTypes.arrayOf(PropTypes.string).isRequired,
};

Expand All @@ -81,4 +82,5 @@ WindowList.defaultProps = {
focusedWindowId: null,
t: key => key,
titles: {},
tReady: false,
};
7 changes: 4 additions & 3 deletions src/components/WorkspaceMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ export class WorkspaceMenu extends Component {
showThemePicker,
isWorkspaceAddVisible,
t,
tReady,
showZoomControls,
toggleZoomControls,
...rest
...menuProps
} = this.props;
const menuProps = { ...rest };
delete menuProps.tReady;

const {
changeTheme,
Expand Down Expand Up @@ -156,6 +155,7 @@ WorkspaceMenu.propTypes = {
showZoomControls: PropTypes.bool,
t: PropTypes.func,
toggleZoomControls: PropTypes.func,
tReady: PropTypes.bool,
};

WorkspaceMenu.defaultProps = {
Expand All @@ -165,4 +165,5 @@ WorkspaceMenu.defaultProps = {
showZoomControls: false,
t: key => key,
toggleZoomControls: () => {},
tReady: false,
};

0 comments on commit 92010e9

Please sign in to comment.