Minor fixes

This commit is contained in:
Tom Moor 2017-11-10 13:53:51 -08:00
parent 21c7cb93a2
commit 8056a784f6
3 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import styled from 'styled-components';
import CopyButton from './CopyButton';
import { color } from 'shared/styles/constants';
import type { Props } from '../types';
import 'shared/styles/prism.css';
export default function Code({ children, node, readOnly, attributes }: Props) {
const language = node.data.get('language') || 'javascript';

View File

@ -27,7 +27,6 @@ function Heading(props: Props) {
children,
component = 'h1',
attributes,
...rest
} = props;
const parentIsDocument = parent instanceof Document;
const firstHeading = parentIsDocument && parent.nodes.first() === node;
@ -41,7 +40,7 @@ function Heading(props: Props) {
emoji && title.match(new RegExp(`^${emoji}\\s`));
return (
<Component {...attributes} {...rest} id={slugish}>
<Component {...attributes} id={slugish}>
<Wrapper hasEmoji={startsWithEmojiAndSpace}>
{children}
</Wrapper>

View File

@ -15,6 +15,7 @@ import DocumentsStore from 'stores/DocumentsStore';
import CollectionsStore from 'stores/CollectionsStore';
import CacheStore from 'stores/CacheStore';
import globalStyles from 'shared/styles/globals';
import 'shared/styles/prism.css';
import Home from 'scenes/Home';
import Dashboard from 'scenes/Dashboard';