您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

SharedVideoDialog.js 875B

123456789101112131415161718192021222324252627282930313233
  1. // @flow
  2. import React from 'react';
  3. import { InputDialog } from '../../../base/dialog';
  4. import { connect } from '../../../base/redux';
  5. import { defaultSharedVideoLink } from '../../constants';
  6. import AbstractSharedVideoDialog from '../AbstractSharedVideoDialog';
  7. /**
  8. * Implements a component to render a display name prompt.
  9. */
  10. class SharedVideoDialog extends AbstractSharedVideoDialog<*> {
  11. /**
  12. * Implements React's {@link Component#render()}.
  13. *
  14. * @inheritdoc
  15. */
  16. render() {
  17. return (
  18. <InputDialog
  19. contentKey = 'dialog.shareVideoTitle'
  20. onSubmit = { this._onSetVideoLink }
  21. textInputProps = {{
  22. placeholder: defaultSharedVideoLink
  23. }} />
  24. );
  25. }
  26. _onSetVideoLink: string => boolean;
  27. }
  28. export default connect()(SharedVideoDialog);