(loadingText, setLoadingText, timer)
| 214 | }; |
| 215 | |
| 216 | export const loadingTextEffect = (loadingText, setLoadingText, timer) => { |
| 217 | const text = loadingText; |
| 218 | let dots = ''; |
| 219 | |
| 220 | const interval = setInterval(() => { |
| 221 | dots = dots.length < 3 ? dots + '.' : ''; |
| 222 | setLoadingText(`${text}${dots}`); |
| 223 | }, timer); |
| 224 | |
| 225 | return () => clearInterval(interval) |
| 226 | }; |
| 227 | |
| 228 | export const openNewTab = (id, name, contentType, hasInternalId = false) => { |
| 229 | EventBus.emit('openNewTab', { |
no outgoing calls
no test coverage detected