-
Notifications
You must be signed in to change notification settings - Fork 227
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
feat: edit source post moderation entity #3796
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
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.
Great! Love reusing the same page.
Maybe we can pass a query string to make the form understand if moderation entity or classic post, just to prevent the double query.
Just make sure to rename the loading variables for better maintainability.
Overal 💯
@@ -51,19 +68,34 @@ export function ShareLink({ | |||
const onSubmit: FormEventHandler<HTMLFormElement> = (e) => { | |||
e.preventDefault(); | |||
|
|||
if (isPosting || isLoading) { | |||
if (isPosting || isPending || isLoading) { |
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.
Maybe is better to rename isPending
and isLoading
for give some context
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.
Makes sense, let me update these ones.
Yeah, that's a good point, we can do that 👀 |
Changes
TODO:
Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
MI-622 #done
Preview domain
https://mi-622.preview.app.daily.dev