Mobile.js 527 B

123456789101112131415161718192021
  1. import React from 'react';
  2. import styles from './Index.less';
  3. import LuckySheet from './LuckySheet';
  4. function Mobile(props) {
  5. const {
  6. match: { params },
  7. } = props;
  8. const projectId = parseInt(params.projectId);
  9. const templateId = parseInt(params.templateId);
  10. const version = { id: parseInt(params.versionId), flow_id: true };
  11. return (
  12. <div className={styles.mobileSheetBox}>
  13. <LuckySheet className={styles.sheet} version={version} templateId={templateId} />
  14. </div>
  15. );
  16. }
  17. export default Mobile;