Skip to content

Commit e5fec1a

Browse files
committed
chore(website): Add GitHub Corner.
1 parent e46b111 commit e5fec1a

File tree

5 files changed

+10
-52
lines changed

5 files changed

+10
-52
lines changed

package-lock.json

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@types/react-dom": "^16.8.4",
4646
"@types/react-test-renderer": "^16.8.1",
4747
"@types/react-transition-group": "^4.2.0",
48+
"@uiw/react-github-corners": "^1.1.2",
4849
"@uiw/reset.css": "^1.0.3",
4950
"compile-less-cli": "^1.3.0",
5051
"highlight.js": "^9.17.1",

website/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import { Switch, Button } from 'uiw';
3+
import GitHubCorners from '@uiw/react-github-corners';
34
import Markdown from './Markdown';
4-
import GithubCorner from './GithubCorner';
55
import DocumentStr from '../README.md'; // @ts-ignore
66
import CodePreview from '../';
77
import { ICodePreviewProps } from '../';
@@ -57,7 +57,7 @@ export default class App extends React.PureComponent<{}, IAppState> {
5757
if (DocumentStrSource) DocumentStrSource = DocumentStr.replace(/([\s\S]*)<!--dividing-->/, '');
5858
return (
5959
<div className={styles.warpper}>
60-
<GithubCorner url="https://uiwjs.github.io/react-code-preview" />
60+
<GitHubCorners fixed href="https://uiwjs.github.io/react-code-preview" target="__blank" />
6161
<h1 className={styles.title}>React Code Preview</h1>
6262
<CodePreview
6363
code={code}

website/GithubCorner/index.module.less

Lines changed: 0 additions & 32 deletions
This file was deleted.

website/GithubCorner/index.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)