Skip to content

Commit d2b5e51

Browse files
committed
small clean up
1 parent 6066c6c commit d2b5e51

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/react-aria-components/src/Collection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ export const SectionContext = createContext<SectionContextValue | null>(null);
101101

102102
// TODO: should I update this since it is deprecated?
103103
/** @deprecated */
104-
// @ts-ignore
105104
export const Section = /*#__PURE__*/ createBranchComponent('section', <T extends object>(props: SectionProps<T>, ref: ForwardedRef<HTMLElement>, section: Node<T>): JSX.Element => {
106105
let {name, render} = useContext(SectionContext)!;
107106
if (process.env.NODE_ENV !== 'production') {

packages/react-aria-components/stories/ListBox.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {useAsyncList, useListData} from 'react-stately';
2424
export default {
2525
title: 'React Aria Components/ListBox',
2626
component: ListBox,
27-
excludeStories: ['MyListBoxLoaderIndicator', 'renderEmptyState']
27+
excludeStories: ['MyListBoxLoaderIndicator']
2828
} as Meta<typeof ListBox>;
2929

3030
export type ListBoxStory = StoryFn<typeof ListBox>;
@@ -546,7 +546,7 @@ export function VirtualizedListBoxWaterfall({minSize = 80, maxSize = 100}: {minS
546546
);
547547
}
548548

549-
export let renderEmptyState = ({isLoading}) => {
549+
let renderEmptyState = ({isLoading}) => {
550550
return (
551551
<div style={{height: 30, width: '100%'}}>
552552
{isLoading ? <LoadingSpinner style={{height: 20, width: 20, transform: 'translate(-50%, -50%)'}} /> : 'No results'}

0 commit comments

Comments
 (0)