Skip to content

Commit

Permalink
398: Readded code
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Apr 10, 2024
1 parent fe47762 commit b036b7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/slide/preview/remote-component-wrapper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import "./remote-component-wrapper.scss";
* @param {string} props.orientation Display orientation or horizontal.
* @param {boolean} props.showPreview Whether to display the prevoew.
* @param {boolean} props.closeButton Display close button on preview
* @param {Function} props.closeCallback Close button callback on preview
* @returns {object} The component.
*/
function RemoteComponentWrapper({
Expand All @@ -26,7 +27,8 @@ function RemoteComponentWrapper({
themeData,
showPreview,
orientation,
closeButton
closeButton,
closeCallback,
}) {
const { t } = useTranslation("common");
const [remoteComponentSlide, setRemoteComponentSlide] = useState(null);
Expand Down Expand Up @@ -119,6 +121,7 @@ function RemoteComponentWrapper({
RemoteComponentWrapper.defaultProps = {
orientation: "",
closeButton: false,
closeCallback: () => {},
mediaData: null,
themeData: {},
};
Expand All @@ -133,6 +136,7 @@ RemoteComponentWrapper.propTypes = {
themeData: PropTypes.shape({
css: PropTypes.string,
}),
closeCallback: PropTypes.func,
showPreview: PropTypes.bool.isRequired,
closeButton: PropTypes.bool,
orientation: PropTypes.string,
Expand Down

0 comments on commit b036b7f

Please sign in to comment.