-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Rich text messages and bounties #3067
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
Changes from all commits
1795271
50feeaf
05c65ac
bcbddc3
ad83121
8f38b3a
cf4ffff
f494030
64227bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,7 @@ import { | |||||||||||||
| } from "@/lib/zod/schemas/bounties"; | ||||||||||||||
| import { useConfirmModal } from "@/ui/modals/confirm-modal"; | ||||||||||||||
| import { X } from "@/ui/shared/icons"; | ||||||||||||||
| import { Markdown } from "@/ui/shared/markdown"; | ||||||||||||||
| import { | ||||||||||||||
| AnimatedSizeContainer, | ||||||||||||||
| Button, | ||||||||||||||
|
|
@@ -413,8 +414,8 @@ function ClaimBountyModalContent({ bounty }: ClaimBountyModalProps) { | |||||||||||||
| <span className="text-content-emphasis font-semibold"> | ||||||||||||||
| Details | ||||||||||||||
| </span> | ||||||||||||||
| <p className="text-content-subtle whitespace-pre-wrap font-medium"> | ||||||||||||||
| {bounty.description} | ||||||||||||||
| <p className="text-content-subtle font-medium"> | ||||||||||||||
| <Markdown className="p-0">{bounty.description}</Markdown> | ||||||||||||||
| </p> | ||||||||||||||
|
Comment on lines
+417
to
419
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the
- <p className="text-content-subtle font-medium">
- <Markdown className="p-0">{bounty.description}</Markdown>
- </p>
+ <Markdown className="text-content-subtle font-medium p-0">
+ {bounty.description}
+ </Markdown>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| </div> | ||||||||||||||
| )} | ||||||||||||||
|
|
@@ -587,7 +588,10 @@ function ClaimBountyModalContent({ bounty }: ClaimBountyModalProps) { | |||||||||||||
| value={description} | ||||||||||||||
| onChange={(e) => { | ||||||||||||||
| const value = e.target.value; | ||||||||||||||
| if (value.length <= MAX_BOUNTY_SUBMISSION_DESCRIPTION_LENGTH) { | ||||||||||||||
| if ( | ||||||||||||||
| value.length <= | ||||||||||||||
| MAX_BOUNTY_SUBMISSION_DESCRIPTION_LENGTH | ||||||||||||||
| ) { | ||||||||||||||
| setDescription(value); | ||||||||||||||
| } | ||||||||||||||
| }} | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the type assertion.
The
as anyassertion bypasses TypeScript's type safety. The type mismatch betweenremarkGfmand the expected plugin type should be resolved properly.This typically happens when the plugin types don't match the version of react-markdown. Consider:
If the type error persists, verify that the versions of
react-markdown,remark-gfm, and their type definitions are compatible, or use a more specific type assertion like:🤖 Prompt for AI Agents