|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2019-11-27 09:49:30
|
|
|
|
|
* @LastEditors : tangjiang
|
|
|
|
|
* @LastEditTime : 2019-12-25 14:50:37
|
|
|
|
|
* @LastEditTime : 2019-12-27 18:42:59
|
|
|
|
|
*/
|
|
|
|
|
import '../index.scss';
|
|
|
|
|
import React from 'react';
|
|
|
|
@ -18,7 +18,7 @@ const {tagBackground, diffText} = CONST;
|
|
|
|
|
|
|
|
|
|
const TaskDescription = (props) => {
|
|
|
|
|
|
|
|
|
|
const { hack = {} } = props;
|
|
|
|
|
const { hack = {}, userInfo = {} } = props;
|
|
|
|
|
const {language, difficult, time_limit, username, description} = hack;
|
|
|
|
|
return (
|
|
|
|
|
<div className={'task_description_area'}>
|
|
|
|
@ -37,7 +37,7 @@ const TaskDescription = (props) => {
|
|
|
|
|
</p>
|
|
|
|
|
<p className={'header_flex'}>
|
|
|
|
|
<span className={'flex_label'}>出题者:</span>
|
|
|
|
|
<Link to="/users/innov/courses" target="_blank" style={{ color: '#5091FF'}}>{username}</Link>
|
|
|
|
|
<Link to={`/users/${userInfo.login}/courses`} target="_blank" style={{ color: '#5091FF'}}>{username}</Link>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task_desc_area">
|
|
|
|
@ -52,8 +52,10 @@ const TaskDescription = (props) => {
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => {
|
|
|
|
|
const { hack } = state.ojForUserReducer;
|
|
|
|
|
const { userInfo } = state.userReducer;
|
|
|
|
|
return {
|
|
|
|
|
hack
|
|
|
|
|
hack,
|
|
|
|
|
userInfo
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|