TASK: Workspaces prefer import via main
index.js instead of src/foo/bar.js
#3453
Open
Description
Description
instead of
import DropDown from '@neos-project/react-ui-components/src/DropDown';
import Badge from '@neos-project/react-ui-components/src/Badge';
we should write:
import {DropDown, Badge} from '@neos-project/react-ui-components';
this way our code is cleaner / and we use the same api as the neos-extensibility consumer api, so one can easily copy out parts of the neos-ui in a custom plugin for heavy modding (like i did lately with the PublishDropdown)
[Description of the bug or feature]
Steps to Reproduce
- [First Step]
- [Second Step]
- [and so on...]
Expected behavior
[What you expected to happen]
Actual behavior
[What actually happened]
Affected Versions
Neos:
UI:
You can get this information by running composer show
or using the package management module within Neos.
The UI version can also be found inside the left sidebar after version 1.0.3.