This commit is contained in:
mgabdev 2020-04-07 23:22:24 -04:00
parent f866f9d78c
commit f6fe64cb53
5 changed files with 39 additions and 4 deletions

View File

@ -0,0 +1,33 @@
const WebsiteIcon = ({
className = '',
width = '16px',
height = '16px',
viewBox = '0 0 48 48',
title = 'Website',
}) => (
<svg
className={className}
version='1.1'
xmlns='http://www.w3.org/2000/svg'
x='0px'
y='0px'
width={width}
height={height}
viewBox={viewBox}
xmlSpace='preserve'
aria-label={title}
>
<g>
<path d="M 42.507812 45.09375 L 5.445312 45.09375 C 2.441406 45.09375 0 42.652344 0 39.648438 L 0 8.222656 C 0 5.222656 2.441406 2.78125 5.445312 2.78125 L 42.507812 2.78125 C 45.511719 2.78125 47.953125 5.222656 47.953125 8.222656 L 47.953125 39.648438 C 47.953125 42.652344 45.511719 45.09375 42.507812 45.09375 Z M 5.445312 4.402344 C 3.335938 4.402344 1.621094 6.117188 1.621094 8.222656 L 1.621094 39.648438 C 1.621094 41.757812 3.335938 43.472656 5.445312 43.472656 L 42.507812 43.472656 C 44.617188 43.472656 46.332031 41.757812 46.332031 39.648438 L 46.332031 8.222656 C 46.332031 6.117188 44.617188 4.402344 42.507812 4.402344 Z M 5.445312 4.402344" />
<path d="M 47.144531 13.636719 L 0.8125 13.636719 C 0.363281 13.636719 0 13.273438 0 12.824219 C 0 12.378906 0.363281 12.015625 0.8125 12.015625 L 47.144531 12.015625 C 47.589844 12.015625 47.953125 12.378906 47.953125 12.824219 C 47.953125 13.273438 47.589844 13.636719 47.144531 13.636719 Z M 47.144531 13.636719" />
<rect x='7' y='20' width='33' height='2' />
<rect x='7' y='27' width='33' height='2' />
<rect x='7' y='35' width='33' height='2' />
<circle cx='6' cy='8.5' r='1.5' />
<circle cx='12' cy='8.5' r='1.5' />
<circle cx='18' cy='8.5' r='1.5' />
</g>
</svg>
)
export default WebsiteIcon

View File

@ -21,8 +21,8 @@ class CommentHeader extends ImmutablePureComponent {
render() {
const { status } = this.props
const repostCount = 12 // status.get('reblogs_count')
const favoriteCount = 2 // status.get('favourites_count') // : todo :
const repostCount = status.get('reblogs_count')
const favoriteCount = status.get('favourites_count')
const statusUrl = `/${status.getIn(['account', 'acct'])}/posts/${status.get('id')}`;

View File

@ -63,6 +63,7 @@ import UnderlineIcon from '../assets/underline_icon'
import UnlockFilledIcon from '../assets/unlock_filled_icon'
import VerifiedIcon from '../assets/verified_icon'
import WarningIcon from '../assets/warning_icon'
import WebsiteIcon from '../assets/website_icon'
const ICONS = {
'add': AddIcon,
@ -129,6 +130,7 @@ const ICONS = {
'unlock-filled': UnlockFilledIcon,
'verified': VerifiedIcon,
'warning': WarningIcon,
'website': WebsiteIcon,
'': CircleIcon,
}

View File

@ -25,7 +25,7 @@ class GroupCreateModal extends ImmutablePureComponent {
width='440'
onClose={onClose}
>
<GroupCreate />
<GroupCreate onCloseModal={onClose} />
</ModalLayout>
)
}

View File

@ -219,7 +219,7 @@ export default class Card extends ImmutablePureComponent {
} else {
embed = (
<div className={[_s.default, _s.py15, _s.px15, _s.width72PX, _s.alignItemsCenter, _s.justifyContentCenter].join(' ')}>
<Icon id='file-text' width='22px' height='22px' className={_s.fillColorSecondary} />
<Icon id='website' width='22px' height='22px' className={_s.fillColorSecondary} />
</div>
)
}