Skip to content

Commit

Permalink
TASK: Remove plow-js from @neos-project/neos-ui-inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
grebaldi committed Dec 26, 2022
1 parent cf9a45c commit eeb6b51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/neos-ui-inspector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@neos-project/neos-ui-redux-store": "workspace:*",
"@neos-project/react-ui-components": "workspace:*",
"classnames": "^2.2.3",
"plow-js": "^2.2.0",
"react-portal": "^4.2.0"
},
"devDependencies": {
Expand Down
7 changes: 3 additions & 4 deletions packages/neos-ui-inspector/src/SecondaryInspector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Portal} from 'react-portal';
import mergeClassNames from 'classnames';
import {$get} from 'plow-js';

import {selectors} from '@neos-project/neos-ui-redux-store';

Expand All @@ -18,9 +17,9 @@ import style from './style.css';
const unappliedChangesOverlayIsVisible = isDirty && !shouldPromptToHandleUnappliedChanges;

return {
isFringeLeft: $get('ui.leftSideBar.isHidden', state),
isFringeRight: $get('ui.rightSideBar.isHidden', state),
isFullScreen: $get('ui.fullScreen.isFullScreen', state),
isFringeLeft: state?.ui?.leftSideBar?.isHidden,
isFringeRight: state?.ui?.rightSideBar?.isHidden,
isFullScreen: state?.ui?.fullScreen?.isFullScreen,
unappliedChangesOverlayIsVisible
};
})
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3892,7 +3892,6 @@ __metadata:
"@neos-project/neos-ui-redux-store": "workspace:*"
"@neos-project/react-ui-components": "workspace:*"
classnames: ^2.2.3
plow-js: ^2.2.0
react-portal: ^4.2.0
typescript: ^4.6.4
peerDependencies:
Expand Down

0 comments on commit eeb6b51

Please sign in to comment.