File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -221,8 +221,8 @@ class Hint extends Component<HintProps, HintState> {
221
221
}
222
222
223
223
get containerWidth ( ) {
224
- const { containerWidth} = this . props ;
225
- return containerWidth || Constants . screenWidth ;
224
+ const { containerWidth = Constants . screenWidth } = this . props ;
225
+ return containerWidth ;
226
226
}
227
227
228
228
get targetLayout ( ) {
@@ -244,13 +244,13 @@ class Hint extends Component<HintProps, HintState> {
244
244
}
245
245
246
246
get hintOffset ( ) {
247
- const { offset} = this . props ;
248
- return offset || DEFAULT_HINT_OFFSET ;
247
+ const { offset = DEFAULT_HINT_OFFSET } = this . props ;
248
+ return offset ;
249
249
}
250
250
251
251
get edgeMargins ( ) {
252
- const { edgeMargins} = this . props ;
253
- return edgeMargins || DEFAULT_EDGE_MARGINS ;
252
+ const { edgeMargins = DEFAULT_EDGE_MARGINS } = this . props ;
253
+ return edgeMargins ;
254
254
}
255
255
256
256
get useSideTip ( ) {
You can’t perform that action at this time.
0 commit comments