fb update
This commit is contained in:
parent
8e21217f7c
commit
41f622125b
@ -160,7 +160,9 @@ export interface ResponseGetLocale {
|
|||||||
export interface ResponseGetPixels {
|
export interface ResponseGetPixels {
|
||||||
status: "success" | string,
|
status: "success" | string,
|
||||||
data: {
|
data: {
|
||||||
fb?: string[];
|
facebook_pixel?: string[];
|
||||||
|
google_analytics?: string[];
|
||||||
|
yandex_metrica?: string[];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -105,11 +105,11 @@ const init = async () => {
|
|||||||
locale: getDefaultLocaleByLanguage(language),
|
locale: getDefaultLocaleByLanguage(language),
|
||||||
});
|
});
|
||||||
|
|
||||||
localStorage.setItem('fb_pixels', JSON.stringify(pixels?.data?.fb || []));
|
localStorage.setItem('fb_pixels', JSON.stringify(pixels?.data?.facebook_pixel || []));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{!!pixels?.data?.fb?.length && <HeadData pixels={pixels.data.fb} />}
|
{!!pixels?.data?.facebook_pixel?.length && <HeadData pixels={pixels.data.facebook_pixel} />}
|
||||||
<I18nextProvider i18n={i18nextInstance}>
|
<I18nextProvider i18n={i18nextInstance}>
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user