Skip to content

Commit

Permalink
fix: Default-export typings for Position and PositionAnimated
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan committed Jun 2, 2021
1 parent 472fb1e commit 88fb952
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/fuselage/src/components/Box/Position/Position.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { Placements, PositionOptions } from '@rocket.chat/fuselage-hooks';
import { ComponentProps, FC, RefObject } from 'react';

import { Box } from '..';

type PositionProps = {
anchor?: RefObject<Element>;
placement?: Placements;
margin?: PositionOptions['margin'];
} & ComponentProps<typeof Box>;

declare const Position: FC<PositionProps>;

export = Position;
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ type PositionAnimatedProps = {
} & ComponentProps<typeof Position>;

declare const PositionAnimated: FC<PositionAnimatedProps>;

export = PositionAnimated;

0 comments on commit 88fb952

Please sign in to comment.