Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions apps/insights/src/components/Root/search-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,17 +267,15 @@ const SearchDialogContents = ({
className={styles.listbox ?? ""}
// eslint-disable-next-line jsx-a11y/no-autofocus
autoFocus={false}
// @ts-expect-error looks like react-aria isn't exposing this
// property in the typescript types correctly...
shouldFocusOnHover
emptyState={
renderEmptyState={() => (
<NoResults
query={search}
onClearSearch={() => {
setSearch("");
}}
/>
}
)}
>
{(result) => (
<ListBoxItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ListBoxItem = <T extends Element>({
onHoverStart,
...props
}: ListBoxItemProps<T>) => {
const prefetchProps = usePrefetch<T>({
const prefetchProps = usePrefetch({
href: props.href,
prefetch,
onHoverStart,
Expand Down
4 changes: 2 additions & 2 deletions packages/component-library/src/unstyled/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export const Row = <T extends object>({
onHoverStart,
...props
}: RowProps<T>) => {
const prefetchProps = usePrefetch<HTMLTableRowElement>({
const prefetchProps = usePrefetch({
href: props.href,
prefetch,
onHoverStart,
ref: ref,
ref,
});

return <BaseRow {...props} {...prefetchProps} />;
Expand Down
4 changes: 1 addition & 3 deletions packages/component-library/src/unstyled/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ type TabProps = ComponentProps<typeof BaseTab> & {
};

export const Tab = ({ ref, prefetch, onHoverStart, ...props }: TabProps) => {
const prefetchProps = usePrefetch<HTMLAnchorElement>({
const prefetchProps = usePrefetch({
href: props.href,
prefetch,
onHoverStart,
// TODO Figure this out...
// @ts-expect-error It doesn't look like refs are getting passed through correctly...
ref,
});

Expand Down
Loading
Loading