From 472f50fb816547e5b0ed40a144e2bda46559422c Mon Sep 17 00:00:00 2001
From: xuzhenghua <xuzhenghua@julyedu.cn>
Date: Wed, 29 May 2019 14:11:39 +0800
Subject: [PATCH] course

---
 src/common/Course/index.js    | 4 ++--
 src/components/Index/index.js | 2 +-
 yarn.lock                     | 5 +++++
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/common/Course/index.js b/src/common/Course/index.js
index 2c5f914..2933d75 100644
--- a/src/common/Course/index.js
+++ b/src/common/Course/index.js
@@ -6,8 +6,8 @@ const Course = (props) => {
         <li className='course-item'>
             {props.top}
             <a href="/#">
-                <img src={props.data.course_img_small} alt=""/>
-                <p className="course-title text-overflow-2">{props.data.course_title}</p>
+                <img src={props.img} alt=""/>
+                <p className="course-title text-overflow-2">{props.title}</p>
             </a>
             {props.bottom}
         </li>
diff --git a/src/components/Index/index.js b/src/components/Index/index.js
index bfc64bf..c67621b 100644
--- a/src/components/Index/index.js
+++ b/src/components/Index/index.js
@@ -212,7 +212,7 @@ function CourseList({modules}) {
                                 </div>
                             )
                             return (
-                                <Course key={index} top={top} data={item} bottom={bottom}></Course>
+                                <Course key={index} top={top} data={item} bottom={bottom} img={item.course_img_small} title={item.course_title}></Course>
                             )
                         })
                     }
diff --git a/yarn.lock b/yarn.lock
index 677a2f1..019bdfc 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3107,6 +3107,11 @@ data-urls@^1.0.0:
     whatwg-mimetype "^2.2.0"
     whatwg-url "^7.0.0"
 
+date-fns@^1.30.1:
+  version "1.30.1"
+  resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c"
+  integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==
+
 date-now@^0.1.4:
   version "0.1.4"
   resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
--
libgit2 0.26.0