additional props added

Signed-off-by: npiyush97 <npiyush35@gmail.com>
This commit is contained in:
npiyush97
2024-03-17 22:39:21 +05:30
parent 5f3f7b37ff
commit 955e51879a
2 changed files with 11 additions and 3 deletions
@@ -21,5 +21,14 @@ export type SubRoute = {
path: string;
title: string;
children: JSX.Element;
tabProps?: TabProps<React.ElementType, { component?: React.ElementType }>;
tabProps?: {
component?: React.ElementType<TabProps>;
to: string;
value?: number;
className?: string;
classes?: {
selected: string;
root: string;
};
};
};
@@ -18,7 +18,6 @@ import { makeStyles } from '@material-ui/core/styles';
import TabUI, { TabProps } from '@material-ui/core/Tab';
import Tabs from '@material-ui/core/Tabs';
import React, { useCallback, useEffect, useState } from 'react';
import { LinkProps } from '../../components';
import { Link } from '@backstage/core-components';
// TODO(blam): Remove this implementation when the Tabs are ready
@@ -63,7 +62,7 @@ export type Tab = {
id: string;
label: string;
tabProps?: {
component?: React.ElementType<LinkProps>;
component?: React.ElementType<TabProps>;
to: string;
value?: number;
className?: string;