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';
66import styles from './styles' ;
77
88type ButtonProps = {
9- margin : string ;
9+ margin ? : string ;
1010} & Record < string , any > ;
1111
1212export const Button : React . FC < ButtonProps > = React . forwardRef (
Original file line number Diff line number Diff line change 22/** @jsx jsx */
33import { css , jsx } from '@emotion/react' ;
44
5- export default ( { margin } : { margin : string } ) => css `
5+ export default ( { margin } : { margin ? : string } ) => css `
66 display : flex;
77 align-items : center;
88
@@ -32,11 +32,11 @@ export default ({ margin }: { margin: string }) => css`
3232 }
3333
3434 & .prefix {
35- margin-right : ${ margin } ;
35+ margin-right : ${ margin || 0 } ;
3636 }
3737
3838 & .suffix {
39- margin-left : ${ margin } ;
39+ margin-left : ${ margin || 0 } ;
4040 }
4141
4242 div {
You can’t perform that action at this time.
0 commit comments