Skip to content

Commit

Permalink
docs: fix broken epic mode examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Jun 21, 2019
1 parent 101070f commit 935aead
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/examples/extension-epic-mode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ const EpicModeComponent: FC<EpicModeComponentProps> = ({
autoFocus={true}
attributes={{ 'data-testid': 'editor-instance' }}
editorStyles={editorStyles}
/>
childRootProps={true} // To support SSR
>
<div />
</ManagedRemirrorProvider>
</RemirrorManager>
</div>
);
Expand All @@ -51,9 +54,11 @@ const EpicModeComponent: FC<EpicModeComponentProps> = ({
export const EpicModeDefault: FunctionComponent = () => (
<EpicModeComponent particleEffect={defaultEffect} shake={true} />
);

export const EpicModeSpawning: FunctionComponent = () => (
<EpicModeComponent particleEffect={spawningEffect} shake={true} />
);

export const EpicModeHeart: FunctionComponent = () => (
<EpicModeComponent particleEffect={heartEffect} shake={false} placeholder='Type for hearts' />
);

0 comments on commit 935aead

Please sign in to comment.