communityconnect
communityconnect copied to clipboard
Refactor duplicated code for removing saved resource
Fixed issue #329 by copying the removalConfirmed function from SavedResource to OrganizationCard. To avoid redundancy, this should be moved to a new location where it can be called by both components. Would have included this in #329, but didn't know where to put it. Also, wanted to wait for issue #335 to be closed, since it uses a lot of the same code and I despise merge conflicts.
Currently, the "action" of saving or removing a resource is being dispatched, but the , but then actually reading/re-writing the query string is handled in the component. Seems like this isn't how Redux is supposed to work, but I don't really know it that well.