Skip to content

Commit

Permalink
feat: remove box props on skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Apr 4, 2024
1 parent 1e6ce1a commit e0830c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/ui/components/skeleton-loader/skeleton-loader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { css } from 'leather-styles/css';
import { Box, type BoxProps } from 'leather-styles/jsx';

Check failure on line 2 in src/app/ui/components/skeleton-loader/skeleton-loader.tsx

View workflow job for this annotation

GitHub Actions / typecheck

'BoxProps' is declared but its value is never read.

interface SkeletonLoaderProps extends BoxProps {
interface SkeletonLoaderProps {
children?: React.ReactNode;
isLoading: boolean;
variant:
Expand All @@ -27,7 +27,7 @@ const variantStyles = {
},
};

export function SkeletonLoader({ children, variant, isLoading, ...rest }: SkeletonLoaderProps) {
export function SkeletonLoader({ children, variant, isLoading }: SkeletonLoaderProps) {
const styles = variant ? variantStyles[variant] : {};

if (isLoading) {
Expand All @@ -48,7 +48,6 @@ export function SkeletonLoader({ children, variant, isLoading, ...rest }: Skelet
},
})}
{...styles}
{...rest}
/>
);
}
Expand Down

0 comments on commit e0830c2

Please sign in to comment.