Skip to content

Commit

Permalink
components/Divider: refactor from reakit to @ariakit/react
Browse files Browse the repository at this point in the history
  • Loading branch information
flootr committed Oct 25, 2023
1 parent 0df2cc2 commit 5e0fca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/components/src/divider/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
// eslint-disable-next-line no-restricted-imports
import { Separator } from 'reakit';
import * as Ariakit from '@ariakit/react';
import type { ForwardedRef } from 'react';

/**
Expand All @@ -20,8 +20,8 @@ function UnconnectedDivider(
const contextProps = useContextSystem( props, 'Divider' );

return (
<Separator
as={ DividerView }
<Ariakit.Separator
render={ <DividerView /> }
{ ...contextProps }
ref={ forwardedRef }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/divider/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* External dependencies
*/
// eslint-disable-next-line no-restricted-imports
import type { SeparatorProps } from 'reakit';
import type { SeparatorProps } from '@ariakit/react';

/**
* Internal dependencies
Expand Down

0 comments on commit 5e0fca2

Please sign in to comment.