Share component refactoring
This commit is contained in:
1 parent
473c4047be
commit
17ca9123f5
5 files changed
+6
-16
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import React from 'react'
|
||||
import { dateFormat } from '../lib/date'
|
||||
import { Share } from './Share'
|
||||
|
||||
const Tag = ({ children }) => (
|
||||
<li className="ArticleTags-Item">
|
||||
@@ -29,15 +30,6 @@ const Head = ({ date, tags = [], children }) => (
|
||||
</header>
|
||||
)
|
||||
|
||||
const Share = () => (
|
||||
<div className="likely">
|
||||
<div className="vkontakte">Поделиться</div>
|
||||
<div className="facebook">Поделиться</div>
|
||||
<div className="telegram">Отправить</div>
|
||||
<div className="twitter">Твитнуть</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
const Article = ({ children, date, tags, title, shareable }) => (
|
||||
<article className="Article">
|
||||
<Head
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as React from 'react'
|
||||
import Share from '../Share'
|
||||
import { Share } from '../Share'
|
||||
import Html from '../Html'
|
||||
|
||||
export interface IPageProps {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const React = require('react')
|
||||
import * as React from 'react'
|
||||
|
||||
const Share = () => (
|
||||
export const Share: React.FC = () => (
|
||||
<div className="likely">
|
||||
<div className="vkontakte">Поделиться</div>
|
||||
<div className="facebook">Поделиться</div>
|
||||
@@ -8,5 +8,3 @@ const Share = () => (
|
||||
<div className="twitter">Твитнуть</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
module.exports = Share
|
||||
Reference in new issue
Block a user