Update TabComponent.tsx

This commit is contained in:
MokireddySampath 2023-04-21 12:22:55 +05:30 committed by GitHub
parent ce3a7debb3
commit 57fa554178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,12 +18,15 @@ interface TabComponentProps {
onTabIndexChange: (newIndex: number) => void; onTabIndexChange: (newIndex: number) => void;
hideHeader: boolean; hideHeader: boolean;
} }
interface TabRefs {
[key: string]: HTMLElement;
}
/** /**
* We assume there's at least one tab * We assume there's at least one tab
*/ */
export class TabComponent extends React.Component<TabComponentProps> { export class TabComponent extends React.Component<TabComponentProps> {
tabRefs: any = {}; private tabRefs: TabRefs = {};
public constructor(props: TabComponentProps) { public constructor(props: TabComponentProps) {
super(props); super(props);