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
1 changed files with 4 additions and 1 deletions

View File

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