@topconsultnpm/sdkui-react-beta 6.6.118 → 6.6.119

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.
@@ -80,9 +80,9 @@ const Message = ({ msg }) => {
80
80
  const TMMessageBox = ({ resizable = false, onButtonClick, title = 'TopMedia', message = '', buttons }) => {
81
81
  const [isVisible, setIsVisible] = useState(true);
82
82
  const [btns, setBtns] = useState(buttons || []);
83
- const [currentWidth, setCurrentWidth] = useState(window.innerWidth);
83
+ // const [currentWidth, setCurrentWidth] = useState<number>(window.innerWidth)
84
84
  let deviceType = useDeviceType();
85
- useEffect(() => { window.addEventListener('resize', () => setCurrentWidth(window.innerWidth)); return () => window.removeEventListener('resize', () => setCurrentWidth(window.innerWidth)); });
85
+ // useEffect(() => { window.addEventListener('resize', () => setCurrentWidth(window.innerWidth)); return () => window.removeEventListener('resize', () => setCurrentWidth(window.innerWidth)) })
86
86
  useEffect(() => {
87
87
  let arr = [];
88
88
  if (buttons) {
@@ -103,8 +103,8 @@ const TMExceptionBox = ({ resizable = false, exception, title = `${SDK_Globals.a
103
103
  let dateString = d.getDate() + '/' + d.getMonth() + 1 + '/' + d.getFullYear();
104
104
  let timeString = d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds() + ':' + d.getMilliseconds();
105
105
  let message = exception.isApiException ? exception.response.title : exception.message;
106
- const [currentWidth, setCurrentWidth] = useState(window.innerWidth);
107
- useEffect(() => { window.addEventListener('resize', () => setCurrentWidth(window.innerWidth)); return () => window.removeEventListener('resize', () => setCurrentWidth(window.innerWidth)); });
106
+ // const [currentWidth, setCurrentWidth] = useState<number>(window.innerWidth)
107
+ // useEffect(() => { window.addEventListener('resize', () => setCurrentWidth(window.innerWidth)); return () => window.removeEventListener('resize', () => setCurrentWidth(window.innerWidth)) })
108
108
  let deviceType = useDeviceType();
109
109
  const getFullMessage = () => {
110
110
  let fullMessage = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.6.118",
3
+ "version": "6.6.119",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",