fix: properly type button and input ref

pull/3083/head
William Grant 1 year ago
parent 8705fddd36
commit 8e5ac58bc1

@ -1,5 +1,5 @@
import classNames from 'classnames'; import classNames from 'classnames';
import { ReactNode } from 'react'; import { ReactNode, RefObject } from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
export enum SessionButtonType { export enum SessionButtonType {
@ -122,7 +122,7 @@ export type SessionButtonProps = {
onClick?: any; onClick?: any;
children?: ReactNode; children?: ReactNode;
margin?: string; margin?: string;
reference?: any; reference?: RefObject<HTMLButtonElement>;
className?: string; className?: string;
dataTestId?: string; dataTestId?: string;
}; };

@ -1,4 +1,4 @@
import { ChangeEvent, ReactNode, useEffect, useState } from 'react'; import { ChangeEvent, ReactNode, RefObject, useEffect, useState } from 'react';
import { motion } from 'framer-motion'; import { motion } from 'framer-motion';
import { isEmpty, isEqual } from 'lodash'; import { isEmpty, isEqual } from 'lodash';
@ -229,7 +229,7 @@ type Props = {
onEnterPressed?: (value: string) => any; onEnterPressed?: (value: string) => any;
autoFocus?: boolean; autoFocus?: boolean;
disableOnBlurEvent?: boolean; disableOnBlurEvent?: boolean;
inputRef?: any; inputRef?: RefObject<HTMLInputElement | HTMLTextAreaElement>;
inputDataTestId?: string; inputDataTestId?: string;
id?: string; id?: string;
enableShowHide?: boolean; enableShowHide?: boolean;

Loading…
Cancel
Save