File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ createInertiaApp({
32
32
// Site light/dark mode
33
33
const colorMode = useSiteColorMode ( { emitAuto : true } ) ;
34
34
35
- // Global Toast component, show errors instead of standard Inertia modal response
35
+ // Global Toast component
36
36
const Root = {
37
37
setup ( ) {
38
+ // show error toast instead of standard Inertia modal response
38
39
const toast = useToast ( ) ;
39
40
router . on ( 'invalid' , ( event ) => {
40
41
const responseBody = event . detail . response ?. data ;
@@ -48,6 +49,7 @@ createInertiaApp({
48
49
} ) ;
49
50
}
50
51
} ) ;
52
+
51
53
return ( ) => h ( 'div' , [
52
54
h ( App , props ) ,
53
55
h ( Toast , { position : 'bottom-right' } )
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ const toggleMobileUserMenu = (event) => {
76
76
</div >
77
77
</template >
78
78
</Drawer >
79
- <ScrollTop :pt =" { root: { class: 'right-4 md:right-8 bottom-4 md:bottom-8' } }" />
80
79
</Teleport >
81
80
</ClientOnly >
82
81
<div class =" min-h-screen" >
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ const toggleMobileUserMenu = (event) => {
74
74
</div >
75
75
</template >
76
76
</Drawer >
77
- <ScrollTop :pt =" { root: { class: 'right-4 md:right-8 bottom-4 md:bottom-8' } }" />
78
77
</Teleport >
79
78
</ClientOnly >
80
79
You can’t perform that action at this time.
0 commit comments