|
|
|
@ -9,10 +9,8 @@ import { AppProvider } from './context/provider' |
|
|
|
|
import AppDialogs from './components/modals/dialogs' |
|
|
|
|
import DialogViewPlugin from './components/modals/dialogViewPlugin' |
|
|
|
|
import { appProviderContextType, onLineContext, platformContext } from './context/context' |
|
|
|
|
import { FormattedMessage, IntlProvider } from 'react-intl' |
|
|
|
|
import { CustomTooltip } from '@remix-ui/helper' |
|
|
|
|
import { IntlProvider } from 'react-intl' |
|
|
|
|
import { UsageTypes } from './types' |
|
|
|
|
import { AppState } from './interface' |
|
|
|
|
import { appReducer } from './reducer/app' |
|
|
|
|
import { appInitialState } from './state/app' |
|
|
|
|
|
|
|
|
@ -45,7 +43,10 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
|
const sidePanelRef = useRef(null) |
|
|
|
|
const pinnedPanelRef = useRef(null) |
|
|
|
|
|
|
|
|
|
const [appState, appStateDispatch] = useReducer(appReducer, appInitialState) |
|
|
|
|
const [appState, appStateDispatch] = useReducer(appReducer, { |
|
|
|
|
...appInitialState, |
|
|
|
|
showPopupPanel: !window.localStorage.getItem('did_show_popup_panel') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
async function activateApp() { |
|
|
|
@ -77,6 +78,12 @@ const RemixApp = (props: IRemixAppUi) => { |
|
|
|
|
} |
|
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
|
if(!appState.showPopupPanel) { |
|
|
|
|
window.localStorage.setItem('did_show_popup_panel', 'true') |
|
|
|
|
} |
|
|
|
|
},[appState.showPopupPanel]) |
|
|
|
|
|
|
|
|
|
function setListeners() { |
|
|
|
|
props.app.sidePanel.events.on('toggle', () => { |
|
|
|
|
setHideSidePanel((prev) => { |
|
|
|
|