File tree 6 files changed +43
-1
lines changed
6 files changed +43
-1
lines changed Original file line number Diff line number Diff line change
1
+ REACT_APP_VERSION = $npm_package_version
2
+ REACT_APP_NAME = $npm_package_name
3
+ REACT_APP_REPO = $npm_package_repository
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"bootstrap" : " ^5.2.3" ,
7
+ "bootstrap-icons" : " ^1.10.5" ,
7
8
"file-saver" : " ^2.0.5" ,
8
9
"gojs" : " ^2.3.6" ,
9
10
"lodash" : " ^4.17.21" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import {
17
17
unrichTreeData ,
18
18
} from '../family.util' ;
19
19
import { useCache } from '../useCache' ;
20
+ import Footer from './Footer' ;
20
21
21
22
interface AppProps {
22
23
trees : Person [ ] ;
@@ -209,6 +210,8 @@ function App(props: AppProps) {
209
210
< Family trees = { trees } />
210
211
</ Container >
211
212
213
+ < Footer />
214
+
212
215
< ModalAddTree isOpen = { showModalAddTree } toggle = { toggleModalAddTree } />
213
216
< ModalAddChild
214
217
isOpen = { showModalAddChild }
Original file line number Diff line number Diff line change
1
+ import { Container } from 'reactstrap' ;
2
+
3
+ const Footer = ( ) => {
4
+ const repo_url = 'https://github.com/rafgugi/family-grid' ;
5
+ const version = process . env . REACT_APP_VERSION as string ;
6
+
7
+ return (
8
+ < footer className = "d-print-none bg-dark text-light py-3 mt-5" >
9
+ < Container >
10
+ < a href = { repo_url } className = "text-light mr-3" >
11
+ < i className = "bi-github" /> family-grid { version }
12
+ </ a >
13
+ </ Container >
14
+ </ footer >
15
+ ) ;
16
+ } ;
17
+
18
+ export default Footer ;
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import { Person } from './family.interface';
5
5
import { enrichTreeData } from './family.util' ;
6
6
import rawFamilyData from './data.yml' ;
7
7
8
- import 'bootstrap/dist/css/bootstrap.css' ;
8
+ import 'bootstrap/dist/css/bootstrap.min.css' ;
9
+ import 'bootstrap-icons/font/bootstrap-icons.min.css' ;
9
10
10
11
let familyData = [ ] as Person [ ] ;
11
12
if ( typeof rawFamilyData === 'object' ) {
You can’t perform that action at this time.
0 commit comments