Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: code style #307

Merged
merged 1 commit into from
Apr 20, 2024
Merged

fix: code style #307

merged 1 commit into from
Apr 20, 2024

Conversation

okisdev
Copy link
Owner

@okisdev okisdev commented Apr 20, 2024

No description provided.

Copy link

vercel bot commented Apr 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chat-chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 20, 2024 1:39pm

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @okisdev - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

Comment on lines +86 to +90
pre: ({ children, ...props }: any) => (
<pre className='overflow-auto whitespace-pre-wrap rounded-md bg-neutral-200 p-1 dark:bg-neutral-600' {...props}>
{children}
</pre>
),
Copy link

Choose a reason for hiding this comment

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

suggestion (code_refinement): Consider specifying a more precise type than any for props.

Using any can lead to potential type safety issues. It would be beneficial to define a more specific type or interface for the props to ensure better type checking and maintainability.

Suggested change
pre: ({ children, ...props }: any) => (
<pre className='overflow-auto whitespace-pre-wrap rounded-md bg-neutral-200 p-1 dark:bg-neutral-600' {...props}>
{children}
</pre>
),
pre: ({ children, ...props }: React.HTMLAttributes<HTMLPreElement>) => (
<pre className='overflow-auto whitespace-pre-wrap rounded-md bg-neutral-200 p-1 dark:bg-neutral-600' {...props}>
{children}
</pre>
),

@okisdev okisdev merged commit 6def914 into main Apr 20, 2024
3 checks passed
@okisdev okisdev deleted the fix/code-style branch April 20, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant