File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 38
38
"react-bootstrap" : " ^2.2.2" ,
39
39
"react-dom" : " ^17.0.2" ,
40
40
"react-dropzone" : " ^12.0.4" ,
41
+ "react-github-fork-ribbon" : " ^0.6.0" ,
41
42
"sql.js" : " ^1.6.2"
42
43
},
43
44
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
import { useCallback , useState , useMemo } from "react" ;
2
2
import { Alert , Container } from "react-bootstrap" ;
3
-
3
+ import GitHubForkRibbon from "react-github-fork-ribbon" ;
4
4
import { useDropzone } from "react-dropzone" ;
5
5
6
6
import { Database } from "./sqlite/Database" ;
@@ -130,6 +130,13 @@ function App() {
130
130
131
131
return (
132
132
< Container fluid >
133
+ < GitHubForkRibbon
134
+ href = "https://github.com/SocialGouv/sqlite-browser"
135
+ target = "_blank"
136
+ position = "right"
137
+ >
138
+ Code source
139
+ </ GitHubForkRibbon >
133
140
< Alert style = { { marginTop : 20 , textAlign : "center" } } >
134
141
< h1 > sqlite-browser</ h1 >
135
142
< p > Explorez vos données SQLite</ p >
Original file line number Diff line number Diff line change 1
1
/// <reference types="react-scripts" />
2
+
3
+ declare module "react-github-fork-ribbon" ;
Original file line number Diff line number Diff line change @@ -9261,6 +9261,11 @@ react-error-overlay@^6.0.9:
9261
9261
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.10.tgz#0fe26db4fa85d9dbb8624729580e90e7159a59a6"
9262
9262
integrity sha512-mKR90fX7Pm5seCOfz8q9F+66VCc1PGsWSBxKbITjfKVQHMNF2zudxHnMdJiB1fRCb+XsbQV9sO9DCkgsMQgBIA==
9263
9263
9264
+ react-github-fork-ribbon@^0.6.0:
9265
+ version "0.6.0"
9266
+ resolved "https://registry.yarnpkg.com/react-github-fork-ribbon/-/react-github-fork-ribbon-0.6.0.tgz#8b7454fec5bd5481af7fdf6d0fc8aa7653373301"
9267
+ integrity sha512-lmobEGwg1k/JGMJMbiWNh3dd+5HUtePVqUu1LPr5L65MiK6mnn7ZgkGpFYXLijPxO9hD7x+f9qUrEzeazQdx2g==
9268
+
9264
9269
react-is@^16.13.1, react-is@^16.3.2:
9265
9270
version "16.13.1"
9266
9271
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
You can’t perform that action at this time.
0 commit comments