99% there

This commit is contained in:
Tom Moor
2017-11-08 00:08:35 -08:00
parent 51bc705488
commit 5d716d9c5f
10 changed files with 122 additions and 79 deletions

View File

@@ -5,9 +5,9 @@ import type { Props } from '../types';
import { color } from 'shared/styles/constants';
function HorizontalRule(props: Props) {
const { state, node } = props;
const { state, node, attributes } = props;
const active = state.isFocused && state.selection.hasEdgeIn(node);
return <StyledHr active={active} />;
return <StyledHr active={active} {...attributes} />;
}
const StyledHr = styled.hr`