Move troubleshooting guide into a modal

Reviewed By: aigoncharov

Differential Revision: D48066773

fbshipit-source-id: 05aca8c75aa30325e1a8c5f31301db1e89ec25af
This commit is contained in:
Anton Kastritskiy
2023-08-07 03:54:28 -07:00
committed by Facebook GitHub Bot
parent 60419c54f2
commit 08371d3a6b
3 changed files with 52 additions and 35 deletions

View File

@@ -26,9 +26,7 @@ import {sideEffect} from '../utils/sideEffect';
import {waitFor} from '../utils/waitFor';
import {NotificationBody} from '../ui/components/NotificationBody';
import {Layout} from '../ui';
import {setStaticView} from '../reducers/connections';
import {TroubleshootingHub} from '../chrome/TroubleshootingHub';
import {setTopLevelSelection} from '../reducers/application';
import {toggleConnectivityModal} from '../reducers/application';
export function connectFlipperServerToStore(
server: FlipperServer,
@@ -314,8 +312,7 @@ function showConnectivityTroubleshootNotification(
type="primary"
style={{float: 'right'}}
onClick={() => {
store.dispatch(setTopLevelSelection('connectivity'));
store.dispatch(setStaticView(TroubleshootingHub));
store.dispatch(toggleConnectivityModal());
notification.close(key);
}}>
Troubleshoot