File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/common/components/Button Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { css, jsx } from '@emotion/react';
6
6
import styles from './styles' ;
7
7
8
8
type ButtonProps = {
9
- margin : string ;
9
+ margin ? : string ;
10
10
} & Record < string , any > ;
11
11
12
12
export const Button : React . FC < ButtonProps > = React . forwardRef (
Original file line number Diff line number Diff line change 2
2
/** @jsx jsx */
3
3
import { css , jsx } from '@emotion/react' ;
4
4
5
- export default ( { margin } : { margin : string } ) => css `
5
+ export default ( { margin } : { margin ? : string } ) => css `
6
6
display : flex;
7
7
align-items : center;
8
8
@@ -32,11 +32,11 @@ export default ({ margin }: { margin: string }) => css`
32
32
}
33
33
34
34
& .prefix {
35
- margin-right : ${ margin } ;
35
+ margin-right : ${ margin || 0 } ;
36
36
}
37
37
38
38
& .suffix {
39
- margin-left : ${ margin } ;
39
+ margin-left : ${ margin || 0 } ;
40
40
}
41
41
42
42
div {
You can’t perform that action at this time.
0 commit comments