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

Removed the delete functionality from my campaigns tab #1073

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

marinovl7
Copy link
Member

Motivation and context

The change is required because the normal user shouldn't be able to delete their campaigns in my campaigns tab in the user's profile

I fixed the GridActions.tsx component in components/campaigns to accept one additional property via props - allowDelete, because this component is also used in podkrepi.bg/admin/campaigns and if the property is set to false the delete icon is not displayed and the opposite if the property is set to true. I also cleaned up the MyCampaignsTable component to not have additional unused code. I saw that there was Root property with styles, which was unused and i just deleted it, if this has some reason to be there just comment and i will fix it .

@quantum-grit quantum-grit merged commit a748d18 into master Oct 25, 2022
@quantum-grit quantum-grit deleted the remove-delete-action-from-my-campaigns-tab branch October 25, 2022 08:05
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.

5 participants