diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-04-23 06:52:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-23 11:52:24 +0000 |
commit | 0c322a7a4ce2474be69a70823ba5f1ea83162e9c (patch) | |
tree | 325040af714bb70067c25662392babc7d3e23108 /src | |
parent | Update the build script for Windows (Powershell) and normalized with the unix... (diff) | |
download | ferdium-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')
-rw-r--r-- | src/components/ui/button/index.tsx | 7 | ||||
-rw-r--r-- | src/components/ui/infobox/index.tsx | 2 | ||||
-rw-r--r-- | src/components/ui/textarea/index.tsx | 2 | ||||
-rw-r--r-- | src/routes.tsx | 5 |
4 files changed, 2 insertions, 14 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], |
diff --git a/src/components/ui/infobox/index.tsx b/src/components/ui/infobox/index.tsx index d4ff61053..9635941cc 100644 --- a/src/components/ui/infobox/index.tsx +++ b/src/components/ui/infobox/index.tsx | |||
@@ -14,7 +14,6 @@ interface IProps extends WithStylesProps<typeof styles> { | |||
14 | onUnmount?: () => void; | 14 | onUnmount?: () => void; |
15 | ctaOnClick?: () => void; | 15 | ctaOnClick?: () => void; |
16 | ctaLabel?: string; | 16 | ctaLabel?: string; |
17 | ctaLoading?: boolean; | ||
18 | children: ReactNode; | 17 | children: ReactNode; |
19 | className: string; | 18 | className: string; |
20 | } | 19 | } |
@@ -115,7 +114,6 @@ class InfoboxComponent extends Component<IProps, IState> { | |||
115 | ctaOnClick: () => {}, | 114 | ctaOnClick: () => {}, |
116 | onDismiss: () => {}, | 115 | onDismiss: () => {}, |
117 | ctaLabel: '', | 116 | ctaLabel: '', |
118 | ctaLoading: false, | ||
119 | }; | 117 | }; |
120 | 118 | ||
121 | state = { | 119 | state = { |
diff --git a/src/components/ui/textarea/index.tsx b/src/components/ui/textarea/index.tsx index a47465806..34ec4cf4b 100644 --- a/src/components/ui/textarea/index.tsx +++ b/src/components/ui/textarea/index.tsx | |||
@@ -18,14 +18,12 @@ interface IProps | |||
18 | extends TextareaHTMLAttributes<HTMLTextAreaElement>, | 18 | extends TextareaHTMLAttributes<HTMLTextAreaElement>, |
19 | IFormField, | 19 | IFormField, |
20 | WithStylesProps<typeof styles> { | 20 | WithStylesProps<typeof styles> { |
21 | focus?: boolean; | ||
22 | data: IData; | 21 | data: IData; |
23 | textareaClassName?: string; | 22 | textareaClassName?: string; |
24 | } | 23 | } |
25 | 24 | ||
26 | class TextareaComponent extends Component<IProps> { | 25 | class TextareaComponent extends Component<IProps> { |
27 | static defaultProps = { | 26 | static defaultProps = { |
28 | focus: false, | ||
29 | onChange: () => {}, | 27 | onChange: () => {}, |
30 | onBlur: () => {}, | 28 | onBlur: () => {}, |
31 | onFocus: () => {}, | 29 | onFocus: () => {}, |
diff --git a/src/routes.tsx b/src/routes.tsx index 8235f017b..b8f649740 100644 --- a/src/routes.tsx +++ b/src/routes.tsx | |||
@@ -26,12 +26,7 @@ import WorkspacesScreen from './features/workspaces/containers/WorkspacesScreen' | |||
26 | import EditWorkspaceScreen from './features/workspaces/containers/EditWorkspaceScreen'; | 26 | import EditWorkspaceScreen from './features/workspaces/containers/EditWorkspaceScreen'; |
27 | import { WORKSPACES_ROUTES } from './features/workspaces/constants'; | 27 | import { WORKSPACES_ROUTES } from './features/workspaces/constants'; |
28 | 28 | ||
29 | import SettingsStore from './stores/SettingsStore'; | ||
30 | |||
31 | type Props = { | 29 | type Props = { |
32 | stores: { | ||
33 | settings: typeof SettingsStore; | ||
34 | }; | ||
35 | history: any; | 30 | history: any; |
36 | }; | 31 | }; |
37 | 32 | ||