1
1
import * as React from 'react' ;
2
2
import { FC } from 'react' ;
3
3
import {
4
+ Avatar ,
5
+ Box ,
6
+ Button ,
4
7
List ,
5
8
ListItem ,
6
9
ListItemAvatar ,
7
10
ListItemText ,
8
- Avatar ,
9
11
} from '@material-ui/core' ;
10
12
import { makeStyles } from '@material-ui/core/styles' ;
11
13
import CommentIcon from '@material-ui/icons/Comment' ;
@@ -22,19 +24,6 @@ interface Props {
22
24
nb ?: number ;
23
25
}
24
26
25
- const useStyles = makeStyles ( theme => ( {
26
- avatar : {
27
- background : theme . palette . background . paper ,
28
- } ,
29
- listItemText : {
30
- overflowY : 'hidden' ,
31
- height : '4em' ,
32
- display : '-webkit-box' ,
33
- WebkitLineClamp : 2 ,
34
- WebkitBoxOrient : 'vertical' ,
35
- } ,
36
- } ) ) ;
37
-
38
27
const PendingReviews : FC < Props > = ( { reviews = [ ] , customers = { } , nb } ) => {
39
28
const classes = useStyles ( ) ;
40
29
const translate = useTranslate ( ) ;
@@ -76,8 +65,39 @@ const PendingReviews: FC<Props> = ({ reviews = [], customers = {}, nb }) => {
76
65
</ ListItem >
77
66
) ) }
78
67
</ List >
68
+ < Box flexGrow = "1" > </ Box >
69
+ < Button
70
+ className = { classes . link }
71
+ component = { Link }
72
+ to = "/reviews"
73
+ size = "small"
74
+ color = "primary"
75
+ >
76
+ < Box p = { 1 } className = { classes . linkContent } >
77
+ { translate ( 'pos.dashboard.all_reviews' ) }
78
+ </ Box >
79
+ </ Button >
79
80
</ CardWithIcon >
80
81
) ;
81
82
} ;
82
83
84
+ const useStyles = makeStyles ( theme => ( {
85
+ avatar : {
86
+ background : theme . palette . background . paper ,
87
+ } ,
88
+ listItemText : {
89
+ overflowY : 'hidden' ,
90
+ height : '4em' ,
91
+ display : '-webkit-box' ,
92
+ WebkitLineClamp : 2 ,
93
+ WebkitBoxOrient : 'vertical' ,
94
+ } ,
95
+ link : {
96
+ borderRadius : 0 ,
97
+ } ,
98
+ linkContent : {
99
+ color : theme . palette . primary . main ,
100
+ } ,
101
+ } ) ) ;
102
+
83
103
export default PendingReviews ;
0 commit comments