/* * @Description: * @Author: tangjiang * @Github: * @Date: 2019-11-27 09:49:30 * @LastEditors: tangjiang * @LastEditTime: 2019-12-09 19:21:55 */ import '../index.scss'; import React from 'react'; import { Tag } from 'antd'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import QuillEditor from '../../../quillEditor'; import CONST from '../../../../../constants'; const {tagBackground, diffText} = CONST; const TaskDescription = (props) => { const { hack = {} } = props; const {language, difficult, time_limit, username, description} = hack; return (

编程语言: {language}

难度: {diffText[+difficult]}

程序运行时间限制: {time_limit}秒

出题者: {username}

{/* */} {/*
*/}
) } const mapStateToProps = (state) => { const { hack } = state.ojForUserReducer; return { hack } } export default connect( mapStateToProps )(TaskDescription);