This commit is contained in:
Tom Moor
2017-12-02 23:14:27 -08:00
parent 5da809c4ab
commit 15e8e50601
29 changed files with 617 additions and 610 deletions

View File

@@ -1,10 +1,10 @@
// @flow
import React from 'react';
import styled from 'styled-components';
import type { Props } from '../types';
import type { props } from 'slate-prop-types';
import { color } from 'shared/styles/constants';
function HorizontalRule(props: Props) {
function HorizontalRule(props: props) {
const { state, node, attributes } = props;
const active = state.isFocused && state.selection.hasEdgeIn(node);
return <StyledHr active={active} {...attributes} />;