Skip to content

Commit

Permalink
apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
hakifran committed Jan 9, 2025
1 parent f2de770 commit d334cad
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion hat/assets/js/apps/Iaso/domains/app/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"iaso.datasources.emptyProjectsError": "Veuillez choisir au moins un projet",
"iaso.datasources.exportDataSource": "Exporter la source: {dataSourceName}",
"iaso.datasources.geoPkg": "Importer un GeoPackage",
"iaso.dataSources.goToCurrentTask": "Lancer et montrer la tâche",
"iaso.datasources.gpkg.chooseFile": "Choisissez un fichier",
"iaso.datasources.gpkg.explication": "Importer des OrgUnits depuis un fichier GeoPackage. Toutes les OrgUnits présentes dans le fichier seront mises à jour.{breakingLine}Le fichier doit être correctement formatté.{breakingLine}",
"iaso.datasources.gpkg.importTaskExplication": "L'import va se dérouler en arrière-plan et peut prendre une dizaine de minutes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { makeUrlWithParams } from '../../../libs/utils';
import { CheckBulkGpsPushResult } from '../types/instance';

export const useGetCheckBulkGpsPush = (
params,
params: Record<string, any>,
): UseQueryResult<CheckBulkGpsPushResult> => {
return useSnackQuery({
queryKey: ['bulkGpsCheck', params],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { postRequest } from '../../../libs/Api';
import { useSnackMutation } from '../../../libs/apiHooks';
import MESSAGES from '../messages';

type BulkGpsPush = {
type BulkGpsPushParams = {
select_all: boolean;
selected_ids: string[];
unselected_ids: string[];
};
export const useInstanceBulkgpspush = (): UseMutationResult => {
return useSnackMutation(
({ select_all, selected_ids, unselected_ids }) => {
({ select_all, selected_ids, unselected_ids }: BulkGpsPushParams) => {
return postRequest('/api/tasks/create/instancebulkgpspush/', {
select_all,
selected_ids,
Expand Down
1 change: 0 additions & 1 deletion hat/assets/js/apps/Iaso/domains/instances/utils/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import CallMade from '@mui/icons-material/CallMade';
import CompareArrowsIcon from '@mui/icons-material/CompareArrows';
// import AddLocationIcon from '@mui/icons-material/AddLocation';
import { Tooltip } from '@mui/material';
import {
Column,
Expand Down

0 comments on commit d334cad

Please sign in to comment.