@selfcommunity/react-ui 0.8.1-alpha.2 → 0.8.1-alpha.3

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.
@@ -197,9 +197,9 @@ const OnBoardingWidget = (inProps) => {
197
197
  * Notify when a category info changes
198
198
  * @param data
199
199
  */
200
- const notifyCategoryChanges = (0, react_1.useCallback)((data) => {
201
- pubsub_js_1.default.publish(`${PubSub_1.SCTopicType.CATEGORY}.${PubSub_1.SCCategoryEventType.EDIT}`, data);
202
- }, []);
200
+ function notifyCategoryChanges(data) {
201
+ data && pubsub_js_1.default.publish(`${PubSub_1.SCTopicType.CATEGORY}.${PubSub_1.SCCategoryEventType.EDIT}`, data);
202
+ }
203
203
  // EFFECTS
204
204
  (0, react_1.useEffect)(() => {
205
205
  if (prevContentsStep &&
@@ -1,6 +1,6 @@
1
1
  import { __awaiter, __rest } from "tslib";
2
2
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useCallback, useEffect, useMemo, useState } from 'react';
3
+ import { useEffect, useMemo, useState } from 'react';
4
4
  import { Accordion, AccordionDetails, AccordionSummary, Box, Button, CardContent, CardMedia, Checkbox, Chip, Fade, Icon, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Typography, useMediaQuery, useTheme } from '@mui/material';
5
5
  import { FormattedMessage } from 'react-intl';
6
6
  import { styled } from '@mui/material/styles';
@@ -195,9 +195,9 @@ const OnBoardingWidget = (inProps) => {
195
195
  * Notify when a category info changes
196
196
  * @param data
197
197
  */
198
- const notifyCategoryChanges = useCallback((data) => {
199
- PubSub.publish(`${SCTopicType.CATEGORY}.${SCCategoryEventType.EDIT}`, data);
200
- }, []);
198
+ function notifyCategoryChanges(data) {
199
+ data && PubSub.publish(`${SCTopicType.CATEGORY}.${SCCategoryEventType.EDIT}`, data);
200
+ }
201
201
  // EFFECTS
202
202
  useEffect(() => {
203
203
  if (prevContentsStep &&