From 0adc3ea695a0dc141e421171dafbbd49927afe2d Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Mon, 2 Dec 2024 13:11:42 +0530 Subject: [PATCH] getting translations from the template api --- package.json | 2 +- src/App.tsx | 2 ++ yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index dd1f12399..b852ad4f2 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "@emoji-mart/react": "^1.1.1", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", - "@glific/flow-editor": "^1.26.3-14", + "@glific/flow-editor": "^1.26.3-15", "@lexical/react": "^0.17.1", "@mui/icons-material": "^6.1.1", "@mui/material": "^6.1.1", diff --git a/src/App.tsx b/src/App.tsx index be6b5c2b9..0e499c4b4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,6 +13,7 @@ import { UnauthenticatedRoute } from 'routes/UnauthenticatedRoute/Unauthenticate import { AuthenticatedRoute } from 'routes/AuthenticatedRoute/AuthenticatedRoute'; import { Logout } from 'containers/Auth/Logout/Logout'; import { checkSessionValidity } from 'common/utils'; +import axios from 'axios'; const App = () => { const navigate = useNavigate(); @@ -20,6 +21,7 @@ const App = () => { // let's checkAuthStatusService allocate it on useEffect const [authenticated, setAuthenticated] = useState(); const [drawerOpen, setDrawerOpen] = useState(true); + axios.get('http://localhost:4000/flow-editor/fields?scope=group').then((data) => console.log(data)); useEffect(() => { const checkAuth = async () => { diff --git a/yarn.lock b/yarn.lock index d3c38d61a..1909a8934 100644 --- a/yarn.lock +++ b/yarn.lock @@ -652,10 +652,10 @@ resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz#81fd50d11e2c32b2d6241470e3185b70c7b30699" integrity sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg== -"@glific/flow-editor@^1.26.3-14": - version "1.26.3-14" - resolved "https://registry.yarnpkg.com/@glific/flow-editor/-/flow-editor-1.26.3-14.tgz#39583fae301398b6176e7b73cd1197d66f0734a7" - integrity sha512-hRcNrflCGTLQeDDcIvQ2Cnu3lOYdd5zeMZX2d0XGbVzk/z9Fbx7yTrH2pgSjXd2A2XgKWw9hs0gB2QtEbanCDA== +"@glific/flow-editor@^1.26.3-15": + version "1.26.3-15" + resolved "https://registry.yarnpkg.com/@glific/flow-editor/-/flow-editor-1.26.3-15.tgz#7f281213fb3348703343a43d8d72fb0a8f3203a6" + integrity sha512-bCDjpodnCr32ZLOgq36HvveSUXL5NibEjJ2qwnvIBeyROipHvTLFlS4zpyU7JIB+rK6SDXlgVLcWmSveNK228w== dependencies: react "^16.8.6" react-dom "^16.8.6"