Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

AbstractSharedVideoDialog.js 889B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // @flow
  2. import { Component } from 'react';
  3. import type { Dispatch } from 'redux';
  4. /**
  5. * The type of the React {@code Component} props of
  6. * {@link AbstractSharedVideoDialog}.
  7. */
  8. export type Props = {
  9. /**
  10. * Invoked to update the shared video link.
  11. */
  12. dispatch: Dispatch<any>,
  13. /**
  14. * Function to be invoked after typing a valid video.
  15. */
  16. onPostSubmit: Function,
  17. /**
  18. * Invoked to obtain translated strings.
  19. */
  20. t: Function
  21. };
  22. /**
  23. * Implements an abstract class for {@code SharedVideoDialog}.
  24. */
  25. export default class AbstractSharedVideoDialog<S: *> extends Component < Props, S > {
  26. /**
  27. * Instantiates a new component.
  28. *
  29. * @inheritdoc
  30. */
  31. constructor(props: Props) {
  32. super(props);
  33. this._onSetVideoLink = this._onSetVideoLink.bind(this);
  34. }
  35. _onSetVideoLink: string => boolean;
  36. }