Skip to content

Commit 07a98bd

Browse files
committed
fixed ts error - not sure why it popped now
1 parent 84887cc commit 07a98bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/button/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ class Button extends PureComponent<Props, ButtonState> {
277277
let style;
278278
switch (animateTo) {
279279
case 'left':
280-
style = {alignSelf: 'flex-start'};
280+
style = {alignSelf: 'flex-start'} as const;
281281
break;
282282
case 'right':
283-
style = {alignSelf: 'flex-end'};
283+
style = {alignSelf: 'flex-end'} as const;
284284
break;
285285
default:
286286
// 'center' is the default

0 commit comments

Comments
 (0)