No Description

index.tsx 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import React, { Component } from 'react';
  2. import classnames from 'classnames';
  3. import styles from './WaitPayInfoView.less';
  4. import infoIconImg from '../assets/icon-info-blue@2x.svg';
  5. const Button = (...props: any) => <button {...props}>button</button>;
  6. interface Props {
  7. onClickPayed?: Function;
  8. onClickProblem?: Function;
  9. }
  10. export class WaitPayInfoView extends Component<Props, {}> {
  11. static defaultProps = {
  12. onClickPayed: () => { console.log("onClickPayed"); },
  13. onClickProblem: () => { console.log("onClickProblem"); }
  14. }
  15. render() {
  16. const { onClickPayed, onClickProblem } = this.props;
  17. return (
  18. <div className={styles.waitingContainer}>
  19. <div className={styles.infoIconImgContainer}>
  20. <img src={infoIconImg} alt="info label icon" />
  21. </div>
  22. <div>
  23. <div className={styles.pay_text}>
  24. {"live.course_info.pay.notification"}
  25. </div>
  26. <div className={styles.btn_row}>
  27. <Button
  28. className={classnames(styles.pay_btn, styles.btn_default)}
  29. size="small"
  30. onClick={() => { onClickPayed && onClickPayed() }}
  31. >
  32. {"live.course_info.pay.payed"}
  33. </Button>
  34. <Button
  35. className={styles.btn_default}
  36. size="small"
  37. style={{
  38. marginLeft: '16px',
  39. }}
  40. onClick={() => { onClickProblem && onClickProblem() }}
  41. >
  42. {"live.course_info.pay.help"}
  43. </Button>
  44. </div>
  45. </div>
  46. </div>
  47. );
  48. }
  49. }
  50. export default WaitPayInfoView;