Skip to content

Commit

Permalink
Revert "fix(app-selections): pass api to portal (#278)"
Browse files Browse the repository at this point in the history
This reverts commit 83310de.
  • Loading branch information
stoffeastrom committed Jan 29, 2020
1 parent d89818a commit 8662b8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions apis/nucleus/src/components/selections/AppSelections.jsx
Expand Up @@ -7,9 +7,12 @@ import { useTheme } from '@nebula.js/ui/theme';

import SelectedFields from './SelectedFields';
import Nav from './Nav';
import useAppSelections from '../../hooks/useAppSelections';

const AppSelections = ({ app, appSelections }) => {
const AppSelections = ({ app }) => {
const theme = useTheme();
const [appSelections] = useAppSelections(app);
if (!appSelections) return null;
return (
<Grid
container
Expand Down Expand Up @@ -37,6 +40,6 @@ const AppSelections = ({ app, appSelections }) => {

export { AppSelections };

export default function mount({ element, app, appSelections }) {
return ReactDOM.createPortal(<AppSelections app={app} appSelections={appSelections} />, element);
export default function mount({ element, app }) {
return ReactDOM.createPortal(<AppSelections app={app} />, element);
}
1 change: 0 additions & 1 deletion apis/nucleus/src/index.js
Expand Up @@ -252,7 +252,6 @@ function nuked(configuration = {}) {
selectionsComponentReference = AppSelectionsPortal({
element,
app,
appSelections,
});
root.add(selectionsComponentReference);
},
Expand Down

0 comments on commit 8662b8a

Please sign in to comment.