@elice/material-runbox 1.251120.0 → 1.251120.1

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.
@@ -50,14 +50,14 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
50
50
  setTimerDetailPopoverAutoOpened = _useLocalStorage2[1];
51
51
  // Open the timer detail automatically at start, just for the first time.
52
52
  React__default.default.useEffect(function () {
53
- if (wasTimerDetailPopoverAutoOpened) {
53
+ if (wasTimerDetailPopoverAutoOpened || hideTimerPopover) {
54
54
  return;
55
55
  }
56
56
  if (isRunboxRunning) {
57
57
  setTimerDetailPopoverOpen(true);
58
58
  setTimerDetailPopoverAutoOpened(true);
59
59
  }
60
- }, [isRunboxRunning, wasTimerDetailPopoverAutoOpened, setTimerDetailPopoverOpen, setTimerDetailPopoverAutoOpened]);
60
+ }, [hideTimerPopover, isRunboxRunning, wasTimerDetailPopoverAutoOpened, setTimerDetailPopoverOpen, setTimerDetailPopoverAutoOpened]);
61
61
  /**
62
62
  *
63
63
  */
@@ -126,9 +126,6 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
126
126
  *
127
127
  */
128
128
  var renderTimerDetailPopover = function renderTimerDetailPopover() {
129
- if (hideTimerPopover) {
130
- return null;
131
- }
132
129
  return jsxRuntime.jsx(MaterialRunboxTimerDetailPopover.default, {
133
130
  userId: userId,
134
131
  open: isTimerDetailPopoverOpen,
@@ -42,14 +42,14 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
42
42
  setTimerDetailPopoverAutoOpened = _useLocalStorage2[1];
43
43
  // Open the timer detail automatically at start, just for the first time.
44
44
  React.useEffect(function () {
45
- if (wasTimerDetailPopoverAutoOpened) {
45
+ if (wasTimerDetailPopoverAutoOpened || hideTimerPopover) {
46
46
  return;
47
47
  }
48
48
  if (isRunboxRunning) {
49
49
  setTimerDetailPopoverOpen(true);
50
50
  setTimerDetailPopoverAutoOpened(true);
51
51
  }
52
- }, [isRunboxRunning, wasTimerDetailPopoverAutoOpened, setTimerDetailPopoverOpen, setTimerDetailPopoverAutoOpened]);
52
+ }, [hideTimerPopover, isRunboxRunning, wasTimerDetailPopoverAutoOpened, setTimerDetailPopoverOpen, setTimerDetailPopoverAutoOpened]);
53
53
  /**
54
54
  *
55
55
  */
@@ -118,9 +118,6 @@ var MaterialRunboxTimer = function MaterialRunboxTimer(_ref) {
118
118
  *
119
119
  */
120
120
  var renderTimerDetailPopover = function renderTimerDetailPopover() {
121
- if (hideTimerPopover) {
122
- return null;
123
- }
124
121
  return jsx(MaterialRunboxTimerDetailPopover, {
125
122
  userId: userId,
126
123
  open: isTimerDetailPopoverOpen,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-runbox",
3
- "version": "1.251120.0",
3
+ "version": "1.251120.1",
4
4
  "description": "User view and editing components of Elice material runbox",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -55,8 +55,8 @@
55
55
  "devDependencies": {
56
56
  "@elice/api-client": "^1.250702.0",
57
57
  "@elice/intl": "0.241127.0",
58
- "@elice/material-shared-types": "1.251120.0",
59
- "@elice/material-shared-utils": "1.251120.0",
58
+ "@elice/material-shared-types": "1.251120.1",
59
+ "@elice/material-shared-utils": "1.251120.1",
60
60
  "@elice/mui-elements": "^5.250108.0-controllabel.0",
61
61
  "@elice/mui-system": "^5.250108.0-controllabel.0",
62
62
  "@elice/mui-x-snackbar": "^5.250108.0-controllabel.0",