@selfcommunity/react-core 0.4.1-alpha.3 → 0.4.1-alpha.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.
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCContextProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCContextProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCLocaleProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCLocaleProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCNotificationProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCNotificationProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCPreferencesProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCPreferencesProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCRoutingProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCRoutingProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCThemeProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCThemeProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCUserProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCUserProvider/index.js +1 -1
- package/lib/cjs/components/provider/SCVoteProvider/index.d.ts +1 -1
- package/lib/cjs/components/provider/SCVoteProvider/index.js +1 -1
- package/lib/cjs/components/router/index.d.ts +1 -1
- package/lib/cjs/components/router/index.js +1 -1
- package/lib/cjs/hooks/useSCAuth.d.ts +1 -1
- package/lib/cjs/hooks/useSCAuth.js +1 -1
- package/lib/cjs/hooks/useSCBlockedUsersManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCBlockedUsersManager.js +1 -1
- package/lib/cjs/hooks/useSCConnectionsManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCConnectionsManager.js +1 -1
- package/lib/cjs/hooks/useSCFetchBroadcastMessages.d.ts +1 -1
- package/lib/cjs/hooks/useSCFetchBroadcastMessages.js +1 -1
- package/lib/cjs/hooks/useSCFetchCategories.d.ts +1 -1
- package/lib/cjs/hooks/useSCFetchCategories.js +1 -1
- package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.d.ts +1 -1
- package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.js +1 -1
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +1 -1
- package/lib/cjs/hooks/useSCFollowedManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCFollowedManager.js +1 -1
- package/lib/cjs/hooks/useSCFollowersManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCFollowersManager.js +1 -1
- package/lib/cjs/hooks/useSCSettingsManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCSettingsManager.js +1 -1
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.d.ts +1 -1
- package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +1 -1
- package/lib/cjs/hooks/useSCUserIsBlocked.d.ts +1 -1
- package/lib/cjs/hooks/useSCUserIsBlocked.js +1 -1
- package/lib/cjs/utils/validator.js +1 -1
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +1 -1
- package/lib/esm/components/provider/SCContextProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCContextProvider/index.js +1 -1
- package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCLocaleProvider/index.js +1 -1
- package/lib/esm/components/provider/SCNotificationProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCNotificationProvider/index.js +1 -1
- package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCPreferencesProvider/index.js +1 -1
- package/lib/esm/components/provider/SCRoutingProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCRoutingProvider/index.js +1 -1
- package/lib/esm/components/provider/SCThemeProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCThemeProvider/index.js +1 -1
- package/lib/esm/components/provider/SCUserProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCUserProvider/index.js +1 -1
- package/lib/esm/components/provider/SCVoteProvider/index.d.ts +1 -1
- package/lib/esm/components/provider/SCVoteProvider/index.js +1 -1
- package/lib/esm/components/router/index.d.ts +1 -1
- package/lib/esm/components/router/index.js +1 -1
- package/lib/esm/hooks/useSCAuth.d.ts +1 -1
- package/lib/esm/hooks/useSCAuth.js +1 -1
- package/lib/esm/hooks/useSCBlockedUsersManager.d.ts +1 -1
- package/lib/esm/hooks/useSCBlockedUsersManager.js +1 -1
- package/lib/esm/hooks/useSCConnectionsManager.d.ts +1 -1
- package/lib/esm/hooks/useSCConnectionsManager.js +1 -1
- package/lib/esm/hooks/useSCFetchBroadcastMessages.d.ts +1 -1
- package/lib/esm/hooks/useSCFetchBroadcastMessages.js +1 -1
- package/lib/esm/hooks/useSCFetchCategories.d.ts +1 -1
- package/lib/esm/hooks/useSCFetchCategories.js +1 -1
- package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.d.ts +1 -1
- package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.js +1 -1
- package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts +1 -1
- package/lib/esm/hooks/useSCFollowedCategoriesManager.js +2 -2
- package/lib/esm/hooks/useSCFollowedManager.d.ts +1 -1
- package/lib/esm/hooks/useSCFollowedManager.js +1 -1
- package/lib/esm/hooks/useSCFollowersManager.d.ts +1 -1
- package/lib/esm/hooks/useSCFollowersManager.js +1 -1
- package/lib/esm/hooks/useSCSettingsManager.d.ts +1 -1
- package/lib/esm/hooks/useSCSettingsManager.js +1 -1
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts +1 -1
- package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +2 -2
- package/lib/esm/hooks/useSCUserIsBlocked.d.ts +1 -1
- package/lib/esm/hooks/useSCUserIsBlocked.js +1 -1
- package/lib/esm/utils/validator.js +1 -1
- package/lib/umd/react-core.js +1 -1
- package/package.json +3 -3
|
@@ -3,7 +3,7 @@ import { SCAlertMessagesContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
```jsx
|
|
8
8
|
1. <SCAlertMessagesContext.Consumer>{(options,) => (...)}</SCAlertMessagesContext.Consumer>
|
|
9
9
|
```
|
|
@@ -7,7 +7,7 @@ const notistack_1 = require("notistack");
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates Global Context
|
|
9
9
|
*
|
|
10
|
-
:::
|
|
10
|
+
:::tip Context can be consumed in one of the following ways:
|
|
11
11
|
```jsx
|
|
12
12
|
1. <SCAlertMessagesContext.Consumer>{(options,) => (...)}</SCAlertMessagesContext.Consumer>
|
|
13
13
|
```
|
|
@@ -3,7 +3,7 @@ import { SCContextProviderType, SCContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
```jsx
|
|
8
8
|
1. <SCContext.Consumer>{settings => (...)}</SCContext.Consumer>
|
|
9
9
|
```
|
|
@@ -10,7 +10,7 @@ const useIsComponentMountedRef_1 = tslib_1.__importDefault(require("../../../uti
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates Global Context
|
|
12
12
|
*
|
|
13
|
-
:::
|
|
13
|
+
:::tip Context can be consumed in one of the following ways:
|
|
14
14
|
```jsx
|
|
15
15
|
1. <SCContext.Consumer>{settings => (...)}</SCContext.Consumer>
|
|
16
16
|
```
|
|
@@ -3,7 +3,7 @@ import { SCLocaleContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
|
|
8
8
|
```jsx
|
|
9
9
|
1. <SCLocaleContext.Consumer>{(locale,) => (...)}</SCLocaleContext.Consumer>
|
|
@@ -13,7 +13,7 @@ const use_deep_compare_effect_1 = require("use-deep-compare-effect");
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates Global Context
|
|
15
15
|
*
|
|
16
|
-
:::
|
|
16
|
+
:::tip Context can be consumed in one of the following ways:
|
|
17
17
|
|
|
18
18
|
```jsx
|
|
19
19
|
1. <SCLocaleContext.Consumer>{(locale,) => (...)}</SCLocaleContext.Consumer>
|
|
@@ -3,7 +3,7 @@ import { SCNotificationContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
|
|
8
8
|
```jsx
|
|
9
9
|
1. <SCNotificationContext.Consumer>{(wsInstance, subscribe,) => (...)}</SCNotificationContext.Consumer>
|
|
@@ -9,7 +9,7 @@ const useSCMobileNativePushMessaging_1 = tslib_1.__importDefault(require("../../
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates Global Context
|
|
11
11
|
*
|
|
12
|
-
:::
|
|
12
|
+
:::tip Context can be consumed in one of the following ways:
|
|
13
13
|
|
|
14
14
|
```jsx
|
|
15
15
|
1. <SCNotificationContext.Consumer>{(wsInstance, subscribe,) => (...)}</SCNotificationContext.Consumer>
|
|
@@ -3,7 +3,7 @@ import { SCThemeContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
|
|
8
8
|
```jsx
|
|
9
9
|
1. <SCThemeContext.Consumer>{(theme,) => (...)}</SCThemeContext.Consumer>
|
|
@@ -11,7 +11,7 @@ const use_deep_compare_effect_1 = require("use-deep-compare-effect");
|
|
|
11
11
|
/**
|
|
12
12
|
* Creates Global Context
|
|
13
13
|
*
|
|
14
|
-
:::
|
|
14
|
+
:::tip Context can be consumed in one of the following ways:
|
|
15
15
|
|
|
16
16
|
```jsx
|
|
17
17
|
1. <SCThemeContext.Consumer>{(theme,) => (...)}</SCThemeContext.Consumer>
|
|
@@ -22,7 +22,7 @@ const Session = tslib_1.__importStar(require("../../../constants/Session"));
|
|
|
22
22
|
/**
|
|
23
23
|
* SCUserContext (Authentication Context)
|
|
24
24
|
*
|
|
25
|
-
:::
|
|
25
|
+
:::tip Context can be consumed in one of the following ways:
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
```jsx
|
|
@@ -11,7 +11,7 @@ import React from 'react';
|
|
|
11
11
|
```jsx
|
|
12
12
|
import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
|
|
13
13
|
````
|
|
14
|
-
:::
|
|
14
|
+
:::tip Usage Example:
|
|
15
15
|
|
|
16
16
|
```jsx
|
|
17
17
|
const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
@@ -38,7 +38,7 @@ const Link = (_a, ref) => {
|
|
|
38
38
|
```jsx
|
|
39
39
|
import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
|
|
40
40
|
````
|
|
41
|
-
:::
|
|
41
|
+
:::tip Usage Example:
|
|
42
42
|
|
|
43
43
|
```jsx
|
|
44
44
|
const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
@@ -31,7 +31,7 @@ export declare const userActionTypes: {
|
|
|
31
31
|
import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
|
|
32
32
|
````
|
|
33
33
|
|
|
34
|
-
:::
|
|
34
|
+
:::tip Usage Example:
|
|
35
35
|
|
|
36
36
|
```jsx
|
|
37
37
|
const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
@@ -114,7 +114,7 @@ function stateInitializer(session) {
|
|
|
114
114
|
import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
|
|
115
115
|
````
|
|
116
116
|
|
|
117
|
-
:::
|
|
117
|
+
:::tip Usage Example:
|
|
118
118
|
|
|
119
119
|
```jsx
|
|
120
120
|
const scRoutingContext: SCRoutingContextType = useSCRouting();
|
|
@@ -7,7 +7,7 @@ import { CacheStrategies } from '@selfcommunity/utils';
|
|
|
7
7
|
@param object
|
|
8
8
|
@param object.cacheStrategy
|
|
9
9
|
|
|
10
|
-
:::
|
|
10
|
+
:::tip Context can be consumed in this way:
|
|
11
11
|
|
|
12
12
|
```jsx
|
|
13
13
|
const {messages, isLoading} = useSCFetchBroadcastMessages();
|
|
@@ -24,7 +24,7 @@ const initialData = { results: [], next: broadcastMessagesRefreshUrl, previous:
|
|
|
24
24
|
@param object
|
|
25
25
|
@param object.cacheStrategy
|
|
26
26
|
|
|
27
|
-
:::
|
|
27
|
+
:::tip Context can be consumed in this way:
|
|
28
28
|
|
|
29
29
|
```jsx
|
|
30
30
|
const {messages, isLoading} = useSCFetchBroadcastMessages();
|
|
@@ -6,7 +6,7 @@ import { CacheStrategies } from '@selfcommunity/utils';
|
|
|
6
6
|
@param object
|
|
7
7
|
@param object.cacheStrategy
|
|
8
8
|
|
|
9
|
-
:::
|
|
9
|
+
:::tip Context can be consumed in this way:
|
|
10
10
|
|
|
11
11
|
```jsx
|
|
12
12
|
const {categories, isLoading} = useSCFetchCategories();
|
|
@@ -5,7 +5,7 @@ import { CacheStrategies } from '@selfcommunity/utils';
|
|
|
5
5
|
This custom hook is used to fetch snippets.
|
|
6
6
|
@param object.cacheStrategy
|
|
7
7
|
|
|
8
|
-
:::
|
|
8
|
+
:::tip Context can be consumed in this way:
|
|
9
9
|
|
|
10
10
|
```jsx
|
|
11
11
|
const {snippets, isLoading} = useSCFetchPrivateMessageSnippets();
|
|
@@ -28,7 +28,7 @@ const hydrate = (ids) => {
|
|
|
28
28
|
This custom hook is used to fetch snippets.
|
|
29
29
|
@param object.cacheStrategy
|
|
30
30
|
|
|
31
|
-
:::
|
|
31
|
+
:::tip Context can be consumed in this way:
|
|
32
32
|
|
|
33
33
|
```jsx
|
|
34
34
|
const {snippets, isLoading} = useSCFetchPrivateMessageSnippets();
|
|
@@ -4,7 +4,7 @@ import { SCCategoryType, SCUserType } from '@selfcommunity/types';
|
|
|
4
4
|
This custom hook is used to manage the categories followed.
|
|
5
5
|
:::
|
|
6
6
|
|
|
7
|
-
:::
|
|
7
|
+
:::tip How to use it:
|
|
8
8
|
Follow these steps:
|
|
9
9
|
```jsx
|
|
10
10
|
1. const scUserContext: SCUserContextType = useSCUser();
|
|
@@ -11,7 +11,7 @@ const utils_1 = require("@selfcommunity/utils");
|
|
|
11
11
|
This custom hook is used to manage the categories followed.
|
|
12
12
|
:::
|
|
13
13
|
|
|
14
|
-
:::
|
|
14
|
+
:::tip How to use it:
|
|
15
15
|
Follow these steps:
|
|
16
16
|
```jsx
|
|
17
17
|
1. const scUserContext: SCUserContextType = useSCUser();
|
|
@@ -8,7 +8,7 @@ const SCUserProvider_1 = require("../components/provider/SCUserProvider");
|
|
|
8
8
|
:::info
|
|
9
9
|
This custom hook is used to check if the user is blocked by me or I am blocked by him.
|
|
10
10
|
:::
|
|
11
|
-
:::
|
|
11
|
+
:::tip How to use it:
|
|
12
12
|
|
|
13
13
|
Follow these steps:
|
|
14
14
|
```jsx
|
|
@@ -576,7 +576,7 @@ const validateReactions = (value, vote) => {
|
|
|
576
576
|
errors.push(errors_1.ValidationError.ERROR_INVALID_VOTE_REACTIONS);
|
|
577
577
|
}
|
|
578
578
|
if (Array.isArray(value) && value.length > 0) {
|
|
579
|
-
let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment && e.image && e.active !== null).length;
|
|
579
|
+
let _validValuesCounts = value.filter((e) => e.id !== null && e.label !== null && e.sentiment !== null && e.image && e.active !== null).length;
|
|
580
580
|
if (_validValuesCounts < value.length) {
|
|
581
581
|
errors.push(errors_1.ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE);
|
|
582
582
|
}
|
|
@@ -3,7 +3,7 @@ import { SCAlertMessagesContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
```jsx
|
|
8
8
|
1. <SCAlertMessagesContext.Consumer>{(options,) => (...)}</SCAlertMessagesContext.Consumer>
|
|
9
9
|
```
|
|
@@ -3,7 +3,7 @@ import { SnackbarProvider } from 'notistack';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
```jsx
|
|
8
8
|
1. <SCAlertMessagesContext.Consumer>{(options,) => (...)}</SCAlertMessagesContext.Consumer>
|
|
9
9
|
```
|
|
@@ -3,7 +3,7 @@ import { SCContextProviderType, SCContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
```jsx
|
|
8
8
|
1. <SCContext.Consumer>{settings => (...)}</SCContext.Consumer>
|
|
9
9
|
```
|
|
@@ -6,7 +6,7 @@ import useIsComponentMountedRef from '../../../utils/hooks/useIsComponentMounted
|
|
|
6
6
|
/**
|
|
7
7
|
* Creates Global Context
|
|
8
8
|
*
|
|
9
|
-
:::
|
|
9
|
+
:::tip Context can be consumed in one of the following ways:
|
|
10
10
|
```jsx
|
|
11
11
|
1. <SCContext.Consumer>{settings => (...)}</SCContext.Consumer>
|
|
12
12
|
```
|
|
@@ -3,7 +3,7 @@ import { SCLocaleContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
|
|
8
8
|
```jsx
|
|
9
9
|
1. <SCLocaleContext.Consumer>{(locale,) => (...)}</SCLocaleContext.Consumer>
|
|
@@ -9,7 +9,7 @@ import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect';
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates Global Context
|
|
11
11
|
*
|
|
12
|
-
:::
|
|
12
|
+
:::tip Context can be consumed in one of the following ways:
|
|
13
13
|
|
|
14
14
|
```jsx
|
|
15
15
|
1. <SCLocaleContext.Consumer>{(locale,) => (...)}</SCLocaleContext.Consumer>
|
|
@@ -3,7 +3,7 @@ import { SCNotificationContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
|
|
8
8
|
```jsx
|
|
9
9
|
1. <SCNotificationContext.Consumer>{(wsInstance, subscribe,) => (...)}</SCNotificationContext.Consumer>
|
|
@@ -5,7 +5,7 @@ import useSCMobileNativePushMessaging from '../../../hooks/useSCMobileNativePush
|
|
|
5
5
|
/**
|
|
6
6
|
* Creates Global Context
|
|
7
7
|
*
|
|
8
|
-
:::
|
|
8
|
+
:::tip Context can be consumed in one of the following ways:
|
|
9
9
|
|
|
10
10
|
```jsx
|
|
11
11
|
1. <SCNotificationContext.Consumer>{(wsInstance, subscribe,) => (...)}</SCNotificationContext.Consumer>
|
|
@@ -3,7 +3,7 @@ import { SCThemeContextType } from '../../../types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates Global Context
|
|
5
5
|
*
|
|
6
|
-
:::
|
|
6
|
+
:::tip Context can be consumed in one of the following ways:
|
|
7
7
|
|
|
8
8
|
```jsx
|
|
9
9
|
1. <SCThemeContext.Consumer>{(theme,) => (...)}</SCThemeContext.Consumer>
|
|
@@ -7,7 +7,7 @@ import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect';
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates Global Context
|
|
9
9
|
*
|
|
10
|
-
:::
|
|
10
|
+
:::tip Context can be consumed in one of the following ways:
|
|
11
11
|
|
|
12
12
|
```jsx
|
|
13
13
|
1. <SCThemeContext.Consumer>{(theme,) => (...)}</SCThemeContext.Consumer>
|