Skip to content

Commit c921995

Browse files
committed
Fork ribbon
1 parent 5449336 commit c921995

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

demo/client/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
import React from 'react';
22
import { render } from 'react-dom';
33
import DemoEditor from './components/DemoEditor';
4+
import Ribbon from 'react-github-fork-ribbon';
45

56
// Import your routes so that you can pass them to the <Router /> component
67
// eslint-disable-next-line import/no-named-as-default
78

89
// Only render in the browser
910
if (typeof document !== 'undefined') {
1011
render(
11-
<DemoEditor />,
12+
<div>
13+
<Ribbon href="https://github.com/ngs/draft-js-markdown-shortcuts-plugin/" target="_blank" position="right" color="black">
14+
Fork me on GitHub
15+
</Ribbon>
16+
<DemoEditor />
17+
</div>,
1218
document.getElementById('root')
1319
);
1420
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"prismjs": "^1.6.0",
6767
"react-addons-pure-render-mixin": "^15.4.1",
6868
"react-addons-test-utils": "^15.4.1",
69+
"react-github-fork-ribbon": "^0.4.4",
6970
"rimraf": "^2.5.4",
7071
"static-site-generator-webpack-plugin": "^3.1.0",
7172
"style-loader": "^0.13.1",

0 commit comments

Comments
 (0)