Skip to content

Commit

Permalink
adjust typings
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Aug 16, 2022
1 parent 01e64dd commit 0f608c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/Overlay/Popover.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, { forwardRef, ReactNode, useRef } from 'react';
import { OverlayProps, useModal, useOverlay } from '@react-aria/overlays';
import { AriaOverlayProps, useModal, useOverlay } from '@react-aria/overlays';
import { mergeProps } from '@react-aria/utils';

import { Box } from '../Box';
import { Overlay } from './Overlay';

export interface PopoverProps
extends Omit<
OverlayProps,
AriaOverlayProps,
'isOpen' | 'isDismissable' | 'isKeyboardDismissDisabled'
> {
children?: ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/Slider/Slider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ test('supports defaultValue (uncontrolled)', () => {

test('supports changing value (controlled)', () => {
const TestComponent = () => {
const [value, setValue] = React.useState([75]);
const [value, setValue] = React.useState(75);
return (
<ThemeProvider theme={theme}>
<Slider value={value} onChange={setValue}>
<Slider value={value} onChange={(val: any) => setValue(val)}>
Example
</Slider>
</ThemeProvider>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/Table/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useRef } from 'react';
import { useTable, TableProps as AriaTableProps } from '@react-aria/table';
import { useTable, AriaTableProps } from '@react-aria/table';
import {
Cell,
Column,
Expand Down

0 comments on commit 0f608c4

Please sign in to comment.