Skip to content

Commit

Permalink
fix: update pluginSlot to use sandbox base URL (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnwesson authored Oct 18, 2023
2 parents a91d539 + dd7fe44 commit c7b07e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/PluginSlot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import classNames from 'classnames';
import { Spinner } from '@edx/paragon';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { AppContext } from '@edx/frontend-platform/react';

// import { usePluginSlot } from './data/hooks';
import {
Expand All @@ -18,14 +19,15 @@ const PluginSlot = forwardRef(({
/* the plugins below are obtained by the id passed into PluginSlot by the Host MFE. See example/src/PluginsPage.jsx
for an example of how PluginSlot is populated, and example/src/index.jsx for a dummy JS config that holds all plugins
*/
const { authenticatedUser } = React.useContext(AppContext);

const dummyConfig = {
plugins: {
example: {
keepDefault: true,
plugins: [
{
url: 'http://localhost:1995/u/edx/plugin',
url: `https://profile-aperturepluginpoc.sandbox.edx.org/u/${authenticatedUser.username}/plugin`,
type: IFRAME_PLUGIN,
},
{
Expand Down

0 comments on commit c7b07e7

Please sign in to comment.