Skip to content

Commit

Permalink
website: add backToUp button.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 28, 2022
1 parent 59fe6ba commit 1773402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -75,6 +75,7 @@
"@types/react": "~18.0.9",
"@types/react-dom": "~18.0.3",
"@types/react-test-renderer": "~18.0.0",
"@uiw/react-back-to-top": "^1.2.0",
"@uiw/react-codesandbox": "~1.1.4",
"@uiw/react-github-corners": "~1.5.3",
"@uiw/react-shields": "~1.1.2",
Expand Down
2 changes: 2 additions & 0 deletions website/App.tsx
Expand Up @@ -2,6 +2,7 @@ import { useState } from 'react';
import GitHubCorners from '@uiw/react-github-corners';
import Github from '@uiw/react-shields/esm/github';
import Npm from '@uiw/react-shields/esm/npm';
import BackToUp from '@uiw/react-back-to-top';
import '@wcj/dark-mode';
import logo from './logo.svg';
import './App.css';
Expand All @@ -14,6 +15,7 @@ const App = () => {
const [value, setValue] = useState('');
return (
<div className="App">
<BackToUp>Top</BackToUp>
<dark-mode permanent light="Light" dark="Dark"></dark-mode>
<GitHubCorners zIndex={9999} fixed target="__blank" href="https://github.com/uiwjs/react-markdown-preview" />
<header className="App-header">
Expand Down

0 comments on commit 1773402

Please sign in to comment.