@@ -4,7 +4,7 @@ import { bindActionCreators } from "redux";
44import { injectIntl } from 'react-intl' ;
55import _ from "lodash" ;
66
7- import { Paper , IconButton , Grid , Divider , Typography , Tooltip } from "@material-ui/core" ;
7+ import { Paper , Button , Grid , Divider , Typography , Tooltip } from "@material-ui/core" ;
88import { withTheme , withStyles } from "@material-ui/core/styles" ;
99import ReplayIcon from "@material-ui/icons/Replay"
1010import {
@@ -204,7 +204,9 @@ class PoliciesPremiumsOverview extends PagedDataHandler {
204204 deletePremiumAction = ( i ) =>
205205 ! ! i . validityTo || ! ! i . clientMutationId ? null :
206206 < Tooltip title = { formatMessage ( this . props . intl , "contribution" , "deletePremium.tooltip" ) } >
207- < IconButton onClick = { ( ) => this . confirmDelete ( i ) } > < DeleteIcon /> </ IconButton >
207+ < Button onClick = { ( ) => this . confirmDelete ( i ) } startIcon = { < DeleteIcon /> } >
208+ { formatMessage ( this . props . intl , "contribution" , "deletePremium.buttonText" ) }
209+ </ Button >
208210 </ Tooltip >
209211
210212 itemFormatters = ( ) => {
@@ -282,14 +284,18 @@ class PoliciesPremiumsOverview extends PagedDataHandler {
282284 const canAdd = rights . includes ( RIGHT_CONTRIBUTION_ADD ) ;
283285 let actions = [
284286 {
285- button : < IconButton onClick = { this . query } > < ReplayIcon /> </ IconButton > ,
287+ button : < Button onClick = { this . query } startIcon = { < ReplayIcon /> } >
288+ { formatMessage ( intl , "contribution" , "reload.tooltip" ) }
289+ </ Button > ,
286290 tooltip : formatMessage ( intl , "contribution" , "reload.tooltip" )
287291 }
288292 ] ;
289293 if ( ! ! ! readOnly && canAdd ) {
290294 actions . push (
291295 {
292- button : < IconButton className = { ! policy ? classes . disabled : "" } onClick = { ! policy ? null : this . checkNewPremium } > < AddIcon /> </ IconButton > ,
296+ button : < Button className = { ! policy ? classes . disabled : "" } onClick = { ! policy ? null : this . checkNewPremium } startIcon = { < AddIcon /> } >
297+ { formatMessage ( intl , "contribution" , "addNewPremium.buttonText" ) }
298+ </ Button > ,
293299 tooltip : ! policy ?
294300 formatMessage ( intl , "contribution" , "addNewPremium.tooltip.selectPolicy" ) :
295301 formatMessage ( intl , "contribution" , "addNewPremium.tooltip" )
0 commit comments