@ludo.ninja/components 1.7.3 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,7 +5,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
import React, { useEffect } from 'react';
|
|
6
6
|
import { DM_Sans, Poppins } from 'next/font/google';
|
|
7
7
|
import { css } from 'styled-components';
|
|
8
|
-
import { poppinsFontVarCss } from '@ludo.ninja/
|
|
8
|
+
import { poppinsFontVarCss } from '@ludo.ninja/ui/build/fonts/vars';
|
|
9
9
|
// const poppinsFont = Poppins({
|
|
10
10
|
// subsets: ['latin'],
|
|
11
11
|
// style: ['normal'],
|
|
@@ -1,43 +1,53 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import process from 'process';
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
import {
|
|
2
|
+
// import process from 'process';
|
|
3
|
+
//
|
|
4
|
+
// import EnvLine from '@ludo.ninja/ui/build/components/envLine';
|
|
5
|
+
//
|
|
6
|
+
// import useMultiAudio from '@/hooks/audio/useMultiAudio';
|
|
7
|
+
//
|
|
8
|
+
// import { CreatorNotifications } from '@/modules/notifications/CreatorNotifications';
|
|
9
|
+
// import { DeleteScrollStateInterceptor } from '@/modules/sessionScroll';
|
|
10
|
+
// import { useAuthVerification } from '@/modules/user/auth/useAuthVerification';
|
|
11
|
+
// import { ProfileDataInitialization } from '@/modules/user/profileData/profileDataInitialization';
|
|
12
|
+
//
|
|
13
|
+
// import useFetchMyExperienceWithLevel from '@/api/server-experiences/queries/useFetchMyExperienceWithLevel';
|
|
14
|
+
// import { SubscriberInviteNotification } from '@/api/subscriptions/SubscriberInviteNotification';
|
|
15
|
+
//
|
|
16
|
+
// import GlobalStyle from '@/styles/globalStyles';
|
|
17
|
+
//
|
|
18
|
+
// import { SidebarInitializer } from '@/components/sidebar/initializer';
|
|
19
|
+
//
|
|
20
|
+
// import Alert from '@/system/Alert';
|
|
21
|
+
// import Modal from '@/system/Modals/Modal';
|
|
22
|
+
// import ModalSidebar from '@/system/Modals/ModalSidebar';
|
|
23
|
+
// import { CreatorModalSidebarPortal } from '@/system/Modals/ModalSidebar/CreatorModalSidebarPortal';
|
|
24
|
+
// import Overlay from '@/system/Overlay';
|
|
25
|
+
//
|
|
26
|
+
// import { InitializeAppHeight } from '@/utils/screen';
|
|
19
27
|
export var GlobalLayout = function (_a) {
|
|
20
28
|
var children = _a.children;
|
|
21
|
-
useFetchMyExperienceWithLevel();
|
|
22
|
-
useMultiAudio();
|
|
23
|
-
useAuthVerification();
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// useFetchMyExperienceWithLevel();
|
|
30
|
+
// useMultiAudio();
|
|
31
|
+
// useAuthVerification();
|
|
32
|
+
// const envValue =
|
|
33
|
+
// process.env.NEXT_PUBLIC_ENV_VALUE !== 'prod'
|
|
34
|
+
// ? (process.env.NEXT_PUBLIC_ENV_VALUE as string)
|
|
35
|
+
// : null;
|
|
36
|
+
console.log('global layout');
|
|
37
|
+
return (<div>
|
|
38
|
+
{/*<ProfileDataInitialization />*/}
|
|
39
|
+
{/*<EnvLine isNeedToShow={envValue} />*/}
|
|
40
|
+
{/*<GlobalStyle />*/}
|
|
31
41
|
{children}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
{/*<CreatorNotifications />*/}
|
|
43
|
+
{/*<InitializeAppHeight />*/}
|
|
44
|
+
{/*<SubscriberInviteNotification />*/}
|
|
45
|
+
{/*<Overlay />*/}
|
|
46
|
+
{/*<SidebarInitializer isProdENV={process.env.NEXT_PUBLIC_ENV_VALUE} />*/}
|
|
47
|
+
{/*<Alert />*/}
|
|
48
|
+
{/*<Modal />*/}
|
|
49
|
+
{/*<ModalSidebar />*/}
|
|
50
|
+
{/*<CreatorModalSidebarPortal />*/}
|
|
51
|
+
{/*<DeleteScrollStateInterceptor />*/}
|
|
52
|
+
</div>);
|
|
43
53
|
};
|