summaryrefslogtreecommitdiffstats
path: root/src/components/ui/button/index.tsx
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-04-23 06:52:24 -0500
committerLibravatar GitHub <noreply@github.com>2022-04-23 11:52:24 +0000
commit0c322a7a4ce2474be69a70823ba5f1ea83162e9c (patch)
tree325040af714bb70067c25662392babc7d3e23108 /src/components/ui/button/index.tsx
parentUpdate the build script for Windows (Powershell) and normalized with the unix... (diff)
downloadferdium-app-0c322a7a4ce2474be69a70823ba5f1ea83162e9c.tar.gz
ferdium-app-0c322a7a4ce2474be69a70823ba5f1ea83162e9c.tar.zst
ferdium-app-0c322a7a4ce2474be69a70823ba5f1ea83162e9c.zip
Update node modules (#31)
* Suppress eslint rules as warnings (dont turn off completely)
Diffstat (limited to 'src/components/ui/button/index.tsx')
-rw-r--r--src/components/ui/button/index.tsx7
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],