diff --git a/src/components/ActivitiesItem/index.js b/src/components/ActivitiesItem/index.js deleted file mode 100644 index 8f74749b1beed6d9f62a129896eeaaf6ea4e3b89..0000000000000000000000000000000000000000 --- a/src/components/ActivitiesItem/index.js +++ /dev/null @@ -1,31 +0,0 @@ -import React from 'react'; -import moment from 'moment'; -import marked from 'marked'; -import { Avatar } from 'antd'; - -import styles from './index.less'; - -/* eslint react/no-danger:0 */ -export default ({ data: { user, updatedAt, action } }) => ( -
-
- { - user.link && - - - } - { - !user.link && {user.title} - } -
-
-
- {user.name} -
-
-

{moment(updatedAt).fromNow()}

-
-
-); diff --git a/src/components/ActivitiesItem/index.less b/src/components/ActivitiesItem/index.less deleted file mode 100644 index 0c95640f523aeaab06aeef8b6f4e03f20fcf01d7..0000000000000000000000000000000000000000 --- a/src/components/ActivitiesItem/index.less +++ /dev/null @@ -1,41 +0,0 @@ -@import "~antd/lib/style/themes/default.less"; - -.activitiesItem { - padding: 24px 24px 0 24px; - position: relative; - - .avatar { - position: absolute; - top: 24px; - left: 24px; - img { - display: block; - border-radius: 32px; - width: 32px; - height: 32px; - } - } - .content { - border-bottom: 1px solid @border-color-split; - padding-left: 48px; - padding-bottom: 24px; - font-size: @font-size-base; - a { - color: @primary-color; - } - & > div { - line-height: 22px; - .name { - margin-right: 4px; - font-weight: 500; - } - div, p { - display: inline-block; - } - } - & > p { - margin-top: 4px; - line-height: 22px; - } - } -}