Skip to content

Commit

Permalink
Merge pull request #73 from zawaze/wip_locale
Browse files Browse the repository at this point in the history
Delete locale force on fr
  • Loading branch information
zawaze committed Dec 21, 2021
2 parents 1b93c76 + 924da78 commit b5e6dc6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.0.2</version>
<version>1.0.2.1</version>
<authors>
<author>
<name></name>
Expand Down
8 changes: 4 additions & 4 deletions templates/backOffice/default/app/dist/thelia-blocks.es.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions templates/backOffice/default/app/dist/thelia-blocks.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/backOffice/default/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": "./dist/thelia-blocks.umd.js"
}
},
"version": "0.1.18",
"version": "0.1.19",
"description": "App to manage TheliaBlocks",
"repository": {
"type": "git",
Expand Down
7 changes: 0 additions & 7 deletions templates/backOffice/default/app/src/hooks/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { initializeWindowConstantsGroupId, setUnsaved } from '../redux/ui';
import { useDispatch, useSelector } from 'react-redux';
import { useMutation, useQuery, useQueryClient } from 'react-query';

import { CURRENT_LOCAL } from '../constants';
import GroupOptions from '../components/GroupOptions';
import { RootState } from '../redux/store';
import { initialState as initialBlocksState } from '../redux/blocks';
Expand Down Expand Up @@ -92,7 +91,6 @@ export function useCreateOrUpdateGroup({ id }: { id?: number }) {
blockGroup: Omit<GroupTypeStore, 'itemBlockGroups'> & {
jsonContent: string;
};
locale: string;
itemBlockGroup?: {
itemId?: itemBlockGroupsType['itemId'];
itemType?: itemBlockGroupsType['itemType'];
Expand All @@ -102,7 +100,6 @@ export function useCreateOrUpdateGroup({ id }: { id?: number }) {
...groupOmitItemBlockGroups,
jsonContent: JSON.stringify(blocks)
},
locale: CURRENT_LOCAL
};

if (id) {
Expand Down Expand Up @@ -212,10 +209,6 @@ export function useCreateImage() {
const queryClient = useQueryClient();
return useMutation<LibraryImage, ErrorType, FormData>(
(data) => {
if (!data.has('locale')) {
data.set('locale', CURRENT_LOCAL);
}

return fetcher(`/open_api/library/image`, {
method: 'POST',
headers: {
Expand Down

0 comments on commit b5e6dc6

Please sign in to comment.