Skip to content
Snippets Groups Projects
Select Git revision
  • 59f13415c0b80e20d46e4bde3f9a47777ea5e0ef
  • main default
  • 35-cgu
  • 34-peertube-support
  • 27-add-autoplay-to-iframe
  • 33-bug-on-youtube-embed-urls
  • RC-Rekall-v1.1-fix_lpo
  • tuleap-140-go-back-to-my-capsules-page-when-i-m-on-capsule-preview-page
  • RC-Rekall-v1.2-fix10
  • RC-Rekall-v1.2-fix9
  • RC-Rekall-v1.2-fix8
  • RC-Rekall-v1.2-fix7
  • RC-Rekall-v1.2-fix6
  • RC-Rekall-v1.2-fix5
  • RC-Rekall-v1.2-fix4
  • RC-Rekall-v1.2-fix3
  • RC-Rekall-v1.2-fix2
  • RC-Rekall-v1.2-fix1
  • RC-Rekall-v1.1-fix-3
  • RC-Rekall-v1.1-fix-2
  • RC-Rekall-v1.1-fix-1
  • RC-Rekall-v1.1-delivered
  • preprod20220209-1535
23 results

webpack.config.js

Blame
  • MosaicRenderPreview.js 666 B
    import React from 'react';
    import PropTypes from 'prop-types';
    import MinimalWindow from '../containers/MinimalWindow';
    
    /**
     * MosaicRenderPreview is used to for the preview when dragging a mosaic window/tile
    */
    export function MosaicRenderPreview(props) {
      const {
        t, title, windowId,
      } = props;
    
      return (
        <MinimalWindow windowId={`${windowId}-preview`} label={t('previewWindowTitle', { title })} />
      );
    }
    
    MosaicRenderPreview.propTypes = {
      t: PropTypes.func,
      title: PropTypes.string,
      windowId: PropTypes.string.isRequired, // eslint-disable-line react/no-unused-prop-types
    };
    
    MosaicRenderPreview.defaultProps = {
      t: k => k,
      title: '',
    };