@@ -29,54 +29,54 @@ struct FlareRootView: View {
2929 String ( describing: ObjectIdentifier ( router) ) )
3030
3131 // FlareMenuContainer(
32- // content:
32+ // content:
3333 // appState: appState,
3434 // router: router
3535 // )
3636 HomeContent ( accountType: accountType)
37- . environmentObject ( appState)
38- . environmentObject ( router)
39- . sheet ( isPresented: $router. isSheetPresented) {
40- if let destination = router. activeDestination {
41- FlareDestinationView (
42- destination: destination,
43- router: router,
44- appState: appState
45- )
37+ . environmentObject ( appState)
38+ . environmentObject ( router)
39+ . sheet ( isPresented: $router. isSheetPresented) {
40+ if let destination = router. activeDestination {
41+ FlareDestinationView (
42+ destination: destination,
43+ router: router,
44+ appState: appState
45+ )
46+ }
4647 }
47- }
48- . fullScreenCover ( isPresented: $router. isFullScreenPresented) {
49- if let destination = router. activeDestination {
50- FlareDestinationView (
51- destination: destination,
52- router: router,
53- appState: appState
48+ . fullScreenCover ( isPresented: $router. isFullScreenPresented) {
49+ if let destination = router. activeDestination {
50+ FlareDestinationView (
51+ destination: destination,
52+ router: router,
53+ appState: appState
54+ )
55+ }
56+ }
57+ . alert ( isPresented: $router. isDialogPresented) {
58+ Alert (
59+ title: Text ( " OK " ) ,
60+ message: Text ( " Are you sure ? " ) ,
61+ primaryButton: . destructive( Text ( " OK " ) ) {
62+ // 处理确认操作
63+ } ,
64+ secondaryButton: . cancel( Text ( " Cancel " ) )
5465 )
5566 }
56- }
57- . alert ( isPresented: $router. isDialogPresented) {
58- Alert (
59- title: Text ( " OK " ) ,
60- message: Text ( " Are you sure ? " ) ,
61- primaryButton: . destructive( Text ( " OK " ) ) {
62- // 处理确认操作
63- } ,
64- secondaryButton: . cancel( Text ( " Cancel " ) )
65- )
66- }
67- . sheet ( isPresented: $composeManager. showCompose) {
68- if let accountType = composeManager. composeAccountType {
69- NavigationView {
70- ComposeScreen (
71- onBack: {
72- composeManager. dismiss ( )
73- } ,
74- accountType: accountType,
75- status: convertToSharedComposeStatus ( composeManager. composeStatus)
76- )
67+ . sheet ( isPresented: $composeManager. showCompose) {
68+ if let accountType = composeManager. composeAccountType {
69+ NavigationView {
70+ ComposeScreen (
71+ onBack: {
72+ composeManager. dismiss ( )
73+ } ,
74+ accountType: accountType,
75+ status: convertToSharedComposeStatus ( composeManager. composeStatus)
76+ )
77+ }
7778 }
7879 }
79- }
8080 } else {
8181 ProgressView ( )
8282 }
0 commit comments