From 0c322a7a4ce2474be69a70823ba5f1ea83162e9c Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Sat, 23 Apr 2022 06:52:24 -0500 Subject: Update node modules (#31) * Suppress eslint rules as warnings (dont turn off completely) --- src/components/ui/button/index.tsx | 7 ++----- src/components/ui/infobox/index.tsx | 2 -- src/components/ui/textarea/index.tsx | 2 -- src/routes.tsx | 5 ----- 4 files changed, 2 insertions(+), 14 deletions(-) (limited to 'src') 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 { event: MouseEvent | MouseEvent, ) => void; buttonType?: ButtonType; - stretch?: boolean; loaded?: boolean; busy?: boolean; icon?: string; @@ -52,8 +51,7 @@ const styles = (theme: Theme) => ({ outline: 'none', alignItems: 'center', padding: 0, - width: (props: IProps) => - (props.stretch ? '100%' : 'auto') as Property.Width, + width: 'auto' as Property.Width, fontSize: theme.uiFontSize, textDecoration: 'none', @@ -137,8 +135,7 @@ const styles = (theme: Theme) => ({ transition: loaderContainerTransition, marginLeft: (props: IProps): number => (!props.busy ? 10 : 20), marginRight: (props: IProps): number => (!props.busy ? -10 : -20), - position: (props: IProps): Property.Position => - props.stretch ? 'absolute' : 'inherit', + position: (): Property.Position => 'inherit', }, icon: { 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 { onUnmount?: () => void; ctaOnClick?: () => void; ctaLabel?: string; - ctaLoading?: boolean; children: ReactNode; className: string; } @@ -115,7 +114,6 @@ class InfoboxComponent extends Component { ctaOnClick: () => {}, onDismiss: () => {}, ctaLabel: '', - ctaLoading: false, }; 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 extends TextareaHTMLAttributes, IFormField, WithStylesProps { - focus?: boolean; data: IData; textareaClassName?: string; } class TextareaComponent extends Component { static defaultProps = { - focus: false, onChange: () => {}, onBlur: () => {}, 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' import EditWorkspaceScreen from './features/workspaces/containers/EditWorkspaceScreen'; import { WORKSPACES_ROUTES } from './features/workspaces/constants'; -import SettingsStore from './stores/SettingsStore'; - type Props = { - stores: { - settings: typeof SettingsStore; - }; history: any; }; -- cgit v1.2.3-70-g09d2