diff --git a/src/components/Disclosure/index.jsx b/src/components/Disclosure/index.jsx
index 91b9d5a8..d67a7740 100644
--- a/src/components/Disclosure/index.jsx
+++ b/src/components/Disclosure/index.jsx
@@ -5,10 +5,9 @@ import { Hyperlink, Icon } from '@edx/paragon';
import { Chat } from '@edx/paragon/icons';
import { getConfig } from '@edx/frontend-platform/config';
-import MessageForm from '../MessageForm';
import './Disclosure.scss';
-const Disclosure = ({ courseId, unitId }) => (
+const Disclosure = ({ children }) => (
Xpert
@@ -45,13 +44,12 @@ const Disclosure = ({ courseId, unitId }) => (
.
-
+ {children}
);
Disclosure.propTypes = {
- courseId: PropTypes.string.isRequired,
- unitId: PropTypes.string.isRequired,
+ children: PropTypes.node.isRequired,
};
export default Disclosure;
diff --git a/src/components/Sidebar/index.jsx b/src/components/Sidebar/index.jsx
index b4bc0ee1..c9a2ceee 100644
--- a/src/components/Sidebar/index.jsx
+++ b/src/components/Sidebar/index.jsx
@@ -83,6 +83,10 @@ const Sidebar = ({
});
};
+ const getMessageForm = () => (
+
+ );
+
const getSidebar = () => (
@@ -107,7 +111,7 @@ const Sidebar = ({
)
}
-
+ {getMessageForm()}
- {disclosureAcknowledged ? (getSidebar()) : ()}
+ {disclosureAcknowledged ? (getSidebar()) : ({getMessageForm()})}
)
);
diff --git a/src/widgets/Xpert.jsx b/src/widgets/Xpert.jsx
index f3e1e5e8..505fdef2 100644
--- a/src/widgets/Xpert.jsx
+++ b/src/widgets/Xpert.jsx
@@ -14,7 +14,6 @@ const Xpert = ({ courseId, contentToolsEnabled, unitId }) => {
const setSidebarIsOpen = (isOpen) => {
dispatch(updateSidebarIsOpen(isOpen));
};
-
return (