rm unused TeacherProfile
This commit is contained in:
1 parent
0c41bffb75
commit
ac02ab3f1a
1 file changed
-29
@@ -1,29 +0,0 @@
|
|||||||
const React = require('react')
|
|
||||||
const Share = require('./Share')
|
|
||||||
const getHtml = require('../lib/component').getHtml
|
|
||||||
|
|
||||||
const Head = ({url, children}) => (
|
|
||||||
!url
|
|
||||||
? <h1>{children}</h1>
|
|
||||||
: <a href={url}><h2>{children}</h2></a>
|
|
||||||
)
|
|
||||||
|
|
||||||
const TeacherProfile = ({picture, name, url, profile, biography, shareable}) => (
|
|
||||||
<div className="teacher-profile">
|
|
||||||
<div className="teacher-profile__picture">
|
|
||||||
<img src={picture.url}/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="teacher-profile__info">
|
|
||||||
<div className="teacher-profile__biography">
|
|
||||||
{getHtml(biography)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{!shareable ? null : (
|
|
||||||
<Share/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
module.exports = TeacherProfile
|
|
||||||
Reference in new issue
Block a user