Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
init api on self-server
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiya1155 committed Jan 11, 2024
1 parent e71018a commit 590cfe1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/CloudApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import {
import { LocaleType } from './types/general';
import { DeviceContextProvider } from './context/providers/DeviceContextProvider';
import { EnvContext } from './context/envContext';
import { getConfig } from './services/api';
import { getConfig, initApi } from './services/api';
import { useComponentWillMount } from './hooks/useComponentWillMount';

const CloudApp = () => {
useComponentWillMount(() => initApi('/api', true));
const [envConfig, setEnvConfig] = useState({});
const [locale, setLocale] = useState<LocaleType>(
(getPlainFromStorage(LANGUAGE_KEY) as LocaleType | null) || 'en',
Expand Down

0 comments on commit 590cfe1

Please sign in to comment.