Skip to content

Commit d7d2097

Browse files
committed
[issue-1894] update interface name
1 parent a581d6e commit d7d2097

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/react-core/src/components/Focusable/Focusable.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import * as React from 'react';
22
import { css } from '@patternfly/react-styles';
33

4-
// eslint-disable-next-line @typescript-eslint/interface-name-prefix
5-
export interface IFocusable {
4+
export interface FocusableProps {
65
children?: string | React.ReactElement;
76
/** any additional classes to apply to the focusable element */
87
className?: string;
@@ -16,7 +15,7 @@ export interface IFocusable {
1615
isFocusable?: boolean;
1716
}
1817

19-
const renderElement = ({ children, tabIndex, className, component: Component, ...props }: IFocusable) =>
18+
const renderElement = ({ children, tabIndex, className, component: Component, ...props }: FocusableProps) =>
2019
typeof children === 'object'
2120
? React.cloneElement(children as React.ReactElement, {
2221
tabIndex,
@@ -25,7 +24,7 @@ const renderElement = ({ children, tabIndex, className, component: Component, ..
2524
})
2625
: React.createElement(Component, { tabIndex, className: css(className), ...props }, children);
2726

28-
const Focusable: React.FunctionComponent<IFocusable> = ({
27+
const Focusable: React.FunctionComponent<FocusableProps> = ({
2928
children,
3029
className,
3130
component: Component = 'div',

0 commit comments

Comments
 (0)