Sha256: b03a735dfcfd34d98b11dfa89688d364b92b2576aafa4df37b09d29be156062f
Contents?: true
Size: 739 Bytes
Versions: 3
Compression:
Stored size: 739 Bytes
Contents
// @flow import React from 'react'; // eslint-disable-line no-unused-vars import { connect } from 'react-redux'; import { editMode } from 'ory-editor-core/lib/actions/display'; import { isEditMode } from 'ory-editor-core/lib/selector/display'; import { createStructuredSelector } from 'reselect'; import EditIcon from 'grommet/components/icons/base/Edit'; import Button from './Button'; const Inner = ({ isEditMode: isedm, editMode: edm }) => ( <Button icon={<EditIcon />} label="Edit" active={isedm} onClick={edm} /> ); const mapStateToProps = createStructuredSelector({ isEditMode }); const mapDispatchToProps = { editMode }; export default connect(mapStateToProps, mapDispatchToProps)(Inner);
Version data entries
3 entries across 3 versions & 1 rubygems