the-deep / client

Web client for DEEP
https://app.thedeep.io/
GNU Affero General Public License v3.0
4 stars 2 forks source link

Geo Areas: Implement graphql mutation to publish regions #2904

Open subinasr opened 5 months ago

subinasr commented 5 months ago

REST API used currently

const { pending: pendingPublishRegion, trigger: publishRegion, } = useLazyRequest<unknown>({ url:server://regions/${region.id}/publish/`, body: {}, method: 'POST', onSuccess: () => { onRegionPublishSuccess(); }, failureMessage: 'Failed to publish selected region.', });

` Filename: RegionCard

related server branch: https://github.com/the-deep/server/pull/1472