Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import AspectRatio from '../AspectRatio';
import React from 'react';
import AspectRatio, { AspectRatioProps } from '../AspectRatio';

Check warning on line 2 in src/components/ui/AspectRatio/stories/AspectRatio.stories.tsx

View workflow job for this annotation

GitHub Actions / lint

'AspectRatioProps' is defined but never used
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
title: 'Components/AspectRatio',
component: AspectRatio,
render: (args) => <SandboxEditor>
render: (args: AspectRatioProps) => <SandboxEditor>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder how we can fix this 'AspectRatioProps' is defined but never used any leads?

Copy link
Contributor Author

@StDensity StDensity Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<AspectRatio {...args} >
<img
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
Expand Down
Loading