File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/@react-spectrum/tabs/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ function TabLine(props: TabLineProps) {
261
261
* A TabList is used within Tabs to group tabs that a user can switch between.
262
262
* The keys of the items within the <TabList> must match up with a corresponding item inside the <TabPanels>.
263
263
*/
264
- export function TabList < T > ( props : SpectrumTabListProps < T > ) : ReactNode {
264
+ export function TabList < T > ( props : SpectrumTabListProps < T > ) : ReactElement {
265
265
const tabContext = useContext ( TabContext ) ! ;
266
266
const { refs, tabState, tabProps, tabPanelProps} = tabContext ;
267
267
const { isQuiet, density, isEmphasized, orientation} = tabProps ;
@@ -337,7 +337,7 @@ export function TabList<T>(props: SpectrumTabListProps<T>): ReactNode {
337
337
* TabPanels is used within Tabs as a container for the content of each tab.
338
338
* The keys of the items within the <TabPanels> must match up with a corresponding item inside the <TabList>.
339
339
*/
340
- export function TabPanels < T extends object > ( props : SpectrumTabPanelsProps < T > ) : ReactNode {
340
+ export function TabPanels < T extends object > ( props : SpectrumTabPanelsProps < T > ) : ReactElement {
341
341
const { tabState, tabProps} = useContext ( TabContext ) ! ;
342
342
const { tabListState} = tabState ;
343
343
You can’t perform that action at this time.
0 commit comments