You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EnterVideoLinkPrompt.js 840B

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