Skip to content

Commit

Permalink
refactor: remove console.log from default value
Browse files Browse the repository at this point in the history
  • Loading branch information
lme-axelor committed Jan 24, 2024
1 parent 1e3184f commit da5818d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/apps/stock/src/screens/loader/LoaderScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const LoaderScreen = () => {
const {loading, listener} = useLoaderListner({
process,
onSuccess: handleCustomAction,
onError: () => console.warn('An error has occurred!'),
});

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ interface LoaderListenerProps {

const useLoaderListner = ({
process,
onSuccess = () => console.log('Process successfully completed.'),
onError = () => console.warn('An error has occurred!'),
onSuccess = () => {},
onError = () => {},
}: LoaderListenerProps) => {
const I18n = useTranslator();

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@
"Base_Dashboard": "Dashboard",
"Base_Dashboard_Misconfigured": "This dashboard is misconfigured, please contact your administrator.",
"Base_Dashboard_RefreshConfig": "Refresh dashboard",
"Base_Loader_ProccessSuccessMessage": "Process successfully completed",
"Base_Loader_ProccessErrorMessage": "An error has occurred",
"Base_Loader_ProccessSuccessMessage": "Process successfully completed.",
"Base_Loader_ProccessErrorMessage": "An error has occurred.",
"Base_SliceAction_FetchAttachedFiles": "fetch attached files",
"Base_SliceAction_FetchFilesDetails": "fetch file details",
"Base_SliceAction_FetchMetaModule": "fetch meta modules",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/i18n/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@
"Base_Dashboard": "Tableau de bord",
"Base_Dashboard_Misconfigured": "Ce tableau de bord est mal configuré, veuillez contacter votre administrateur.",
"Base_Dashboard_RefreshConfig": "Actualiser le tableau de bord",
"Base_Loader_ProccessSuccessMessage": "Le processus s'est terminé avec succès",
"Base_Loader_ProccessErrorMessage": "Une erreur s'est produite",
"Base_Loader_ProccessSuccessMessage": "Le processus s'est terminé avec succès.",
"Base_Loader_ProccessErrorMessage": "Une erreur s'est produite.",
"Base_SliceAction_FetchAttachedFiles": "récupération des fichiers joints",
"Base_SliceAction_FetchFilesDetails": "récupération des détails du fichier",
"Base_SliceAction_FetchMetaModule": "récupération des modules",
Expand Down

0 comments on commit da5818d

Please sign in to comment.