@selfcommunity/react-ui 0.7.9-alpha.46 → 0.7.9-alpha.47

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.
@@ -48,7 +48,7 @@ export interface UserProps extends WidgetProps {
48
48
  * Props to spread to the button
49
49
  * @default {}
50
50
  */
51
- buttonProps?: ButtonBaseProps;
51
+ buttonProps?: ButtonBaseProps | null;
52
52
  /**
53
53
  * Any other properties
54
54
  */
@@ -67,7 +67,7 @@ function User(inProps) {
67
67
  props: inProps,
68
68
  name: constants_1.PREFIX
69
69
  });
70
- const { userId = null, user = null, handleIgnoreAction, className = null, followConnectUserButtonProps = {}, showFollowers = false, elevation, badgeContent = null, actions = null, isGroupAdmin = false, buttonProps = {} } = props, rest = tslib_1.__rest(props, ["userId", "user", "handleIgnoreAction", "className", "followConnectUserButtonProps", "showFollowers", "elevation", "badgeContent", "actions", "isGroupAdmin", "buttonProps"]);
70
+ const { userId = null, user = null, handleIgnoreAction, className = null, followConnectUserButtonProps = {}, showFollowers = false, elevation, badgeContent = null, actions = null, isGroupAdmin = false, buttonProps = null } = props, rest = tslib_1.__rest(props, ["userId", "user", "handleIgnoreAction", "className", "followConnectUserButtonProps", "showFollowers", "elevation", "badgeContent", "actions", "isGroupAdmin", "buttonProps"]);
71
71
  // STATE
72
72
  const { scUser, setSCUser } = (0, react_core_1.useSCFetchUser)({ id: userId, user });
73
73
  // CONTEXT
@@ -48,7 +48,7 @@ export interface UserProps extends WidgetProps {
48
48
  * Props to spread to the button
49
49
  * @default {}
50
50
  */
51
- buttonProps?: ButtonBaseProps;
51
+ buttonProps?: ButtonBaseProps | null;
52
52
  /**
53
53
  * Any other properties
54
54
  */
@@ -65,7 +65,7 @@ export default function User(inProps) {
65
65
  props: inProps,
66
66
  name: PREFIX
67
67
  });
68
- const { userId = null, user = null, handleIgnoreAction, className = null, followConnectUserButtonProps = {}, showFollowers = false, elevation, badgeContent = null, actions = null, isGroupAdmin = false, buttonProps = {} } = props, rest = __rest(props, ["userId", "user", "handleIgnoreAction", "className", "followConnectUserButtonProps", "showFollowers", "elevation", "badgeContent", "actions", "isGroupAdmin", "buttonProps"]);
68
+ const { userId = null, user = null, handleIgnoreAction, className = null, followConnectUserButtonProps = {}, showFollowers = false, elevation, badgeContent = null, actions = null, isGroupAdmin = false, buttonProps = null } = props, rest = __rest(props, ["userId", "user", "handleIgnoreAction", "className", "followConnectUserButtonProps", "showFollowers", "elevation", "badgeContent", "actions", "isGroupAdmin", "buttonProps"]);
69
69
  // STATE
70
70
  const { scUser, setSCUser } = useSCFetchUser({ id: userId, user });
71
71
  // CONTEXT