Explorar o código

add page edit

chenxixian %!s(int64=6) %!d(string=hai) anos
pai
achega
853f775a26
Modificáronse 2 ficheiros con 3 adicións e 6 borrados
  1. 2 2
      addpage.jsx
  2. 1 4
      hello-world.mdx

+ 2 - 2
addpage.jsx

@@ -58,7 +58,7 @@ const ButtonStyled = styled('button')`
   border-radius: 3px;
 `
 
-export const addpageButton = ({ children, ...props }) => (
+export const Button = ({ children, ...props }) => (
   <ButtonStyled {...props}>{children}</ButtonStyled>
 )
 
@@ -90,7 +90,7 @@ export function AddPageButton(props) {
       href={`https://ecs.chenxixian.cn/chenxixian/docz/_new/master/`}
       target="_blank"
       className="EditButton">
-      Edit This Page!
+      Add Page!
     </a>
   )
 }

+ 1 - 4
hello-world.mdx

@@ -3,12 +3,9 @@ name: Hello world
 route: /
 ---
 
-import { Button, EditButton} from './hello-world'
 
-<EditButton />
 
-
-import { addpageButton, AddPageButton} from './addpage'
+import { Button, AddPageButton} from './addpage'
 
 <AddPageButton />