diff --git a/ui/component/claimRepostButton/index.js b/ui/component/claimRepostButton/index.js new file mode 100644 index 000000000..6331ab9a4 --- /dev/null +++ b/ui/component/claimRepostButton/index.js @@ -0,0 +1,9 @@ +import { connect } from 'react-redux'; +import { doOpenModal } from 'redux/actions/app'; +import ClaimRepostButton from './view'; + +const perform = { + doOpenModal, +}; + +export default connect(null, perform)(ClaimRepostButton); diff --git a/ui/component/claimRepostButton/view.jsx b/ui/component/claimRepostButton/view.jsx new file mode 100644 index 000000000..c9dfc85e0 --- /dev/null +++ b/ui/component/claimRepostButton/view.jsx @@ -0,0 +1,32 @@ +// @flow +import * as MODALS from 'constants/modal_types'; +import * as ICONS from 'constants/icons'; +import React from 'react'; +import classnames from 'classnames'; +import Button from 'component/button'; +import Tooltip from 'component/common/tooltip'; + +type Props = { + uri: string, + fileAction?: boolean, + doOpenModal: (string, {}) => void, +}; + +export default function ClaimRepostButton(props: Props) { + const { uri, fileAction, doOpenModal } = props; + + console.log('uri', uri); + + return ( + +