Skip to content

Commit

Permalink
refactor: rename soilId{Fragments,Service} to soilData{Fragments,Serv…
Browse files Browse the repository at this point in the history
…ice}
  • Loading branch information
shrouxm committed May 13, 2024
1 parent 3ae6c31 commit 014021a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
File renamed without changes.
File renamed without changes.
18 changes: 9 additions & 9 deletions src/soilId/soilIdSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit';
import { setUsers } from 'terraso-client-shared/account/accountSlice';
import { setProjects } from 'terraso-client-shared/project/projectSlice';
import { setSites } from 'terraso-client-shared/site/siteSlice';
import * as soilIdService from 'terraso-client-shared/soilId/soilIdService';
import * as soilDataService from 'terraso-client-shared/soilId/soilDataService';
import {
CollectionMethod,
DepthInterval,
Expand Down Expand Up @@ -153,7 +153,7 @@ export const {

export const fetchSoilDataForUser = createAsyncThunk(
'soilId/fetchSoilDataForUser',
dispatchByKeys(soilIdService.fetchSoilDataForUser, () => ({
dispatchByKeys(soilDataService.fetchSoilDataForUser, () => ({
projects: setProjects,
sites: setSites,
projectSoilSettings: setProjectSettings,
Expand All @@ -164,37 +164,37 @@ export const fetchSoilDataForUser = createAsyncThunk(

export const updateSoilData = createAsyncThunk(
'soilId/updateSoilData',
soilIdService.updateSoilData,
soilDataService.updateSoilData,
);

export const updateDepthDependentSoilData = createAsyncThunk(
'soilId/updateDepthDependentSoilData',
soilIdService.updateDepthDependentSoilData,
soilDataService.updateDepthDependentSoilData,
);

export const updateSoilDataDepthInterval = createAsyncThunk(
'soilId/updateSoilDataDepthInterval',
soilIdService.updateSoilDataDepthInterval,
soilDataService.updateSoilDataDepthInterval,
);

export const deleteSoilDataDepthInterval = createAsyncThunk(
'soilId/deleteSoilDataDepthInterval',
soilIdService.deleteSoilDataDepthInterval,
soilDataService.deleteSoilDataDepthInterval,
);

export const updateProjectSoilSettings = createAsyncThunk(
'soilId/updateProjectSoilSettings',
soilIdService.updateProjectSoilSettings,
soilDataService.updateProjectSoilSettings,
);

export const updateProjectDepthInterval = createAsyncThunk(
'soilId/updateProjectDepthInterval',
soilIdService.updateProjectDepthInterval,
soilDataService.updateProjectDepthInterval,
);

export const deleteProjectDepthInterval = createAsyncThunk(
'soilId/deleteProjectDepthInterval',
soilIdService.deleteProjectDepthInterval,
soilDataService.deleteProjectDepthInterval,
);

export default soilIdSlice.reducer;

0 comments on commit 014021a

Please sign in to comment.