diff options
Diffstat (limited to 'src/components/ui/button/index.tsx')
-rw-r--r-- | src/components/ui/button/index.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/ui/button/index.tsx b/src/components/ui/button/index.tsx index b18f44909..11369dcbd 100644 --- a/src/components/ui/button/index.tsx +++ b/src/components/ui/button/index.tsx | |||
@@ -25,7 +25,6 @@ interface IProps extends IFormField, WithStylesProps<typeof styles> { | |||
25 | event: MouseEvent<HTMLButtonElement> | MouseEvent<HTMLAnchorElement>, | 25 | event: MouseEvent<HTMLButtonElement> | MouseEvent<HTMLAnchorElement>, |
26 | ) => void; | 26 | ) => void; |
27 | buttonType?: ButtonType; | 27 | buttonType?: ButtonType; |
28 | stretch?: boolean; | ||
29 | loaded?: boolean; | 28 | loaded?: boolean; |
30 | busy?: boolean; | 29 | busy?: boolean; |
31 | icon?: string; | 30 | icon?: string; |
@@ -52,8 +51,7 @@ const styles = (theme: Theme) => ({ | |||
52 | outline: 'none', | 51 | outline: 'none', |
53 | alignItems: 'center', | 52 | alignItems: 'center', |
54 | padding: 0, | 53 | padding: 0, |
55 | width: (props: IProps) => | 54 | width: 'auto' as Property.Width<string>, |
56 | (props.stretch ? '100%' : 'auto') as Property.Width<string>, | ||
57 | fontSize: theme.uiFontSize, | 55 | fontSize: theme.uiFontSize, |
58 | textDecoration: 'none', | 56 | textDecoration: 'none', |
59 | 57 | ||
@@ -137,8 +135,7 @@ const styles = (theme: Theme) => ({ | |||
137 | transition: loaderContainerTransition, | 135 | transition: loaderContainerTransition, |
138 | marginLeft: (props: IProps): number => (!props.busy ? 10 : 20), | 136 | marginLeft: (props: IProps): number => (!props.busy ? 10 : 20), |
139 | marginRight: (props: IProps): number => (!props.busy ? -10 : -20), | 137 | marginRight: (props: IProps): number => (!props.busy ? -10 : -20), |
140 | position: (props: IProps): Property.Position => | 138 | position: (): Property.Position => 'inherit', |
141 | props.stretch ? 'absolute' : 'inherit', | ||
142 | }, | 139 | }, |
143 | icon: { | 140 | icon: { |
144 | margin: [1, 10, 0, -5], | 141 | margin: [1, 10, 0, -5], |