From aa74be4d107877ed1bdc27c382c84e776571d45e Mon Sep 17 00:00:00 2001
From: ciaochaos <1272777550@qq.com>
Date: Fri, 12 Jun 2020 01:17:46 +0800
Subject: [PATCH] Add official Github star button.
---
package.json | 1 +
src/components/app/PartMore.js | 2 ++
yarn.lock | 12 ++++++++++++
3 files changed, 15 insertions(+)
diff --git a/package.json b/package.json
index b91ac60..6506a63 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,7 @@
"react": "^16.13.1",
"react-color": "^2.18.1",
"react-dom": "^16.13.1",
+ "react-github-btn": "^1.2.0",
"react-redux": "^7.2.0",
"react-scripts": "3.4.1",
"redux": "^4.0.5"
diff --git a/src/components/app/PartMore.js b/src/components/app/PartMore.js
index 07cfece..e241fbc 100644
--- a/src/components/app/PartMore.js
+++ b/src/components/app/PartMore.js
@@ -1,6 +1,7 @@
import React from 'react';
import './App.css';
import LinkButton from "../link/LinkButton";
+import GitHubButton from 'react-github-btn'
const PartMore = () => (
@@ -8,6 +9,7 @@ const PartMore = () => (
More
更多
+
Star
最新消息
2020.6.11
QRBTF React 组件发布!快在你的应用中引入 react-qrbtf 吧。访问项目。
2020.5.23
网站开源啦!点击访问 我们的 Github。期待你也来参与设计、开发!给个 Star 支持一下不?查看文章 QRBTF 开源啦!来写个二维码样式吧~。
diff --git a/yarn.lock b/yarn.lock
index 02c59d6..dadf1be 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -4821,6 +4821,11 @@ getpass@^0.1.1:
dependencies:
assert-plus "^1.0.0"
+github-buttons@^2.8.0:
+ version "2.11.0"
+ resolved "https://registry.npm.taobao.org/github-buttons/download/github-buttons-2.11.0.tgz#e05acef43e670be0a93912a1ec67c5432acccfa7"
+ integrity sha1-4FrO9D5nC+CpORKh7GfFQyrMz6c=
+
glob-parent@^3.1.0:
version "3.1.0"
resolved "https://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae"
@@ -8698,6 +8703,13 @@ react-error-overlay@^6.0.7:
resolved "https://registry.npm.taobao.org/react-error-overlay/download/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108"
integrity sha1-Hc+0WatnHVP2YKmRUTyy8KBVMQg=
+react-github-btn@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.npm.taobao.org/react-github-btn/download/react-github-btn-1.2.0.tgz#464066f999a77c0eed27980260601b51cbe15614"
+ integrity sha1-RkBm+ZmnfA7tJ5gCYGAbUcvhVhQ=
+ dependencies:
+ github-buttons "^2.8.0"
+
react-is@^16.12.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.9.0:
version "16.13.1"
resolved "https://registry.npm.taobao.org/react-is/download/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"