Browse Source

更新 'Button.jsx'

chenxixian 6 years ago
parent
commit
44fcdd133c
1 changed files with 19 additions and 0 deletions
  1. 19 0
      Button.jsx

+ 19 - 0
Button.jsx

@@ -76,3 +76,22 @@ Button.defaultProps = {
   kind: 'primary',
   outline: false,
 }
+
+export function EditButton(props) {
+  let encodedStatus = encodeURIComponent(
+    "This live editor looks pretty darn handy #JavaScript"
+  )
+  let encodedURL = encodeURIComponent(
+    "https://ecs.chenxixian.cn/chenxixian/docz/src/master"
+  )
+
+  return (
+    <a
+      href={`https://ecs.chenxixian.cn/chenxixian/docz/_edit/master/Button.mdx`}
+      target="_blank"
+      className="EditButton">
+      Edit it!
+    </a>
+  )
+}
+