fix types some more
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
							parent
							
								
									07e0a017e7
								
							
						
					
					
						commit
						9fcc2ced3d
					
				|  | @ -21,7 +21,7 @@ import ReactDOM from "react-dom"; | |||
| import classNames from "classnames"; | ||||
| 
 | ||||
| import {Key} from "../../Keyboard"; | ||||
| import AccessibleButton, { IAccessibleButtonProps, ButtonEvent } from "../views/elements/AccessibleButton"; | ||||
| import AccessibleButton, { IProps as IAccessibleButtonProps, ButtonEvent } from "../views/elements/AccessibleButton"; | ||||
| import {Writeable} from "../../@types/common"; | ||||
| 
 | ||||
| // Shamelessly ripped off Modal.js.  There's probably a better way
 | ||||
|  |  | |||
|  | @ -27,7 +27,7 @@ export type ButtonEvent = React.MouseEvent<Element> | React.KeyboardEvent<Elemen | |||
|  * onClick:  (required) Event handler for button activation. Should be | ||||
|  *           implemented exactly like a normal onClick handler. | ||||
|  */ | ||||
| interface IProps extends React.InputHTMLAttributes<Element> { | ||||
| export interface IProps extends React.InputHTMLAttributes<Element> { | ||||
|     inputRef?: React.Ref<Element>; | ||||
|     element?: string; | ||||
|     // The kind of button, similar to how Bootstrap works.
 | ||||
|  | @ -42,7 +42,7 @@ interface IProps extends React.InputHTMLAttributes<Element> { | |||
|     onClick?(e?: ButtonEvent): void; | ||||
| } | ||||
| 
 | ||||
| export interface IAccessibleButtonProps extends React.InputHTMLAttributes<Element> { | ||||
| interface IAccessibleButtonProps extends React.InputHTMLAttributes<Element> { | ||||
|     ref?: React.Ref<Element>; | ||||
| } | ||||
| 
 | ||||
|  | @ -64,7 +64,6 @@ export default function AccessibleButton({ | |||
|     className, | ||||
|     ...restProps | ||||
| }: IProps) { | ||||
| 
 | ||||
|     const newProps: IAccessibleButtonProps = restProps; | ||||
|     if (!disabled) { | ||||
|         newProps.onClick = onClick; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Michael Telatynski
						Michael Telatynski