Skip to content

Commit

Permalink
fix: Export correctly props and types from PositionAnimated and Tile …
Browse files Browse the repository at this point in the history
…components (#467)
  • Loading branch information
tiagoevanp authored Jun 4, 2021
1 parent 88fb952 commit 67a86ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ComponentProps, FC } from 'react';
import Position from '.';

type PositionAnimatedProps = {
visibility?: boolean;
visible?: 'hidden' | 'visible' | 'hiding' | 'unhiding';
} & ComponentProps<typeof Position>;

declare const PositionAnimated: FC<PositionAnimatedProps>;
Expand Down
8 changes: 4 additions & 4 deletions packages/fuselage/src/components/Tile/Tile.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ComponentProps, forwardRef, Ref } from 'react';
import React, { ComponentProps, forwardRef } from 'react';

import { useStyleSheet } from '../../hooks/useStyleSheet';
import { Box } from '../Box';
Expand All @@ -8,9 +8,9 @@ type TileProps = ComponentProps<typeof Box> & {
elevation?: '0' | '1' | '2';
};

const Tile = forwardRef(function Tile(
{ elevation = '1', padding = 'x16', ...props }: TileProps,
ref: Ref<HTMLElement>
const Tile = forwardRef<HTMLElement, TileProps>(function Tile(
{ elevation = '1', padding = 'x16', ...props },
ref
) {
useStyleSheet();
useStyleSheet(tileStyleSheet);
Expand Down

0 comments on commit 67a86ec

Please sign in to comment.