@@ -27,22 +27,22 @@ const Container = styled.div<{
27
27
word-wrap: break-word;
28
28
line-height: initial;
29
29
${ props => props . $animationStyle }
30
- background-color: ${ ( props ) => props . $style ?. background } ;
31
- font-weight: ${ ( props ) => props ?. $style ?. textWeight } ;
32
- border-radius: ${ ( props ) => props ?. $style ?. radius } ;
33
- font-size: ${ ( props ) => props ?. $style ?. textSize } ;
34
- rotate: ${ ( props ) => props ?. $style ?. rotation } ;
35
- text-transform: ${ ( props ) => props ?. $style ?. textTransform } ;
36
- color: ${ ( props ) => props ?. $style ?. text } ;
37
- border: ${ ( props ) => props ?. $style ?. border } ;
38
- border-style: ${ ( props ) => props ?. $style ?. borderStyle } ;
39
- border-width: ${ ( props ) => props ?. $style ?. borderWidth } ;
40
- font-family: ${ ( props ) => props ?. $style ?. fontFamily } ;
41
- font-style: ${ ( props ) => props ?. $style ?. fontStyle } ;
42
- margin: ${ ( props ) => props ?. $style ?. margin } ;
43
- padding: ${ ( props ) => props ?. $style ?. padding } ;
44
- background: ${ ( props ) => props ?. $style ?. background } ;
45
- text-decoration: ${ ( props ) => props ?. $style ?. textDecoration } ;
30
+ background-color: ${ props => props . $style ?. background } ;
31
+ font-weight: ${ props => props ?. $style ?. textWeight } ;
32
+ border-radius: ${ props => props ?. $style ?. radius } ;
33
+ font-size: ${ props => props ?. $style ?. textSize } ;
34
+ rotate: ${ props => props ?. $style ?. rotation } ;
35
+ text-transform: ${ props => props ?. $style ?. textTransform } ;
36
+ color: ${ props => props ?. $style ?. text } ;
37
+ border: ${ props => props ?. $style ?. border } ;
38
+ border-style: ${ props => props ?. $style ?. borderStyle } ;
39
+ border-width: ${ props => props ?. $style ?. borderWidth } ;
40
+ font-family: ${ props => props ?. $style ?. fontFamily } ;
41
+ font-style: ${ props => props ?. $style ?. fontStyle } ;
42
+ margin: ${ props => props ?. $style ?. margin } ;
43
+ padding: ${ props => props ?. $style ?. padding } ;
44
+ background: ${ props => props ?. $style ?. background } ;
45
+ text-decoration: ${ props => props ?. $style ?. textDecoration } ;
46
46
` ;
47
47
48
48
const ButtonWarrper = styled . div `
@@ -105,7 +105,7 @@ const childrenMap = {
105
105
startButtonStyle : styleControl ( startButtonStyle ) ,
106
106
resetButtonStyle : styleControl ( startButtonStyle ) ,
107
107
onEvent : eventHandlerControl ( EventOptions ) ,
108
- defaultValue : stringExposingStateControl ( ' defaultValue' , '00:00:00:000' ) ,
108
+ defaultValue : stringExposingStateControl ( " defaultValue" , '00:00:00:000' ) ,
109
109
timerType : dropdownControl ( timerTypeOptions , 'timer' ) ,
110
110
elapsedTime : stateComp < number > ( 0 ) ,
111
111
timerState : stateComp < string > ( 'stoped' ) ,
@@ -203,24 +203,17 @@ const AvatarGroupView = (props: RecordConstructorToView<typeof childrenMap> & {
203
203
< StyledButton
204
204
$style = { props . startButtonStyle }
205
205
disabled = { ! buttonState }
206
- type = { timerState === 'stoped' ? ' primary' : 'default' }
206
+ type = { timerState === 'stoped' ? " primary" : 'default' }
207
207
onClick = { ( ) => {
208
- if ( timerState === 'stoped' ) startAction ( ) ;
209
- else if ( timerState === 'started' ) pauseAction ( ) ;
210
- else if ( timerState === 'paused' ) resumeAction ( ) ;
208
+ if ( timerState === 'stoped' ) startAction ( )
209
+ else if ( timerState === 'started' ) pauseAction ( )
210
+ else if ( timerState === 'paused' ) resumeAction ( )
211
211
} }
212
- >
213
- { timerState === 'stoped'
214
- ? trans ( 'timer.start' )
215
- : timerState === 'started'
216
- ? trans ( 'timer.pause' )
217
- : trans ( 'timer.resume' ) }
218
- </ StyledButton >
212
+ > { timerState === 'stoped' ? trans ( 'timer.start' ) : ( timerState === 'started' ? trans ( 'timer.pause' ) : trans ( 'timer.resume' ) ) } </ StyledButton >
219
213
< StyledButton
220
214
$style = { props . resetButtonStyle }
221
- onClick = { ( ) => resetAction ( ) }
222
- >
223
- { trans ( 'timer.reset' ) }
215
+ onClick = { ( ) => resetAction ( ) }
216
+ > { trans ( 'timer.reset' ) }
224
217
</ StyledButton >
225
218
</ Space >
226
219
</ ButtonWarrper >
0 commit comments