@@ -2,7 +2,8 @@ import React, { Component } from 'react';
2
2
import PropTypes from 'prop-types' ;
3
3
import ImmutablePropTypes from 'react-immutable-proptypes' ;
4
4
// Components
5
- import { Button , Card } from 'tigerspack' ;
5
+ import Card from '@mui/material/Card' ;
6
+ import Button from '@mui/material/Button' ;
6
7
// Styles
7
8
import styles from './HomeInfo.scss' ;
8
9
@@ -16,21 +17,31 @@ export default class HomeInfo extends Component {
16
17
} ) ,
17
18
} ;
18
19
20
+ static defaultProps = {
21
+ home : {
22
+ name : 'react-redux-app-template' ,
23
+ description : 'About\n'
24
+ + 'The template that will help you quickly start developing your project using React' ,
25
+ html_url : 'https://github.com/awibox/react-redux-app-template' ,
26
+ } ,
27
+ } ;
28
+
19
29
buttonClick = ( url ) => window . open ( url ) ;
20
30
21
31
render ( ) {
22
32
const { home } = this . props ;
23
33
return (
24
34
< div className = { styles . homeInfo } >
25
- < Card theme = { 'light' } >
35
+ < Card >
26
36
< div className = { styles . homeLogo } >
27
37
< div className = { styles . image } >
28
38
< i className = "fa fa-gears" > </ i >
29
39
</ div >
30
40
< h1 className = { styles . name } > { home . get ( 'name' ) } </ h1 >
31
41
< div className = { styles . text } > { home . get ( 'description' ) } </ div >
32
42
< div className = { styles . button } >
33
- < Button icon = { < i className = "fa fa-github" /> } onClick = { ( ) => this . buttonClick ( home . get ( 'html_url' ) ) } >
43
+ < Button variant = "contained" startIcon = { < i className = "fa fa-github" /> }
44
+ onClick = { ( ) => this . buttonClick ( home . get ( 'html_url' ) ) } >
34
45
Download with Github
35
46
</ Button >
36
47
</ div >
0 commit comments