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({
3232 // Site light/dark mode
3333 const colorMode = useSiteColorMode ( { emitAuto : true } ) ;
3434
35- // Global Toast component, show errors instead of standard Inertia modal response
35+ // Global Toast component
3636 const Root = {
3737 setup ( ) {
38+ // show error toast instead of standard Inertia modal response
3839 const toast = useToast ( ) ;
3940 router . on ( 'invalid' , ( event ) => {
4041 const responseBody = event . detail . response ?. data ;
@@ -48,6 +49,7 @@ createInertiaApp({
4849 } ) ;
4950 }
5051 } ) ;
52+
5153 return ( ) => h ( 'div' , [
5254 h ( App , props ) ,
5355 h ( Toast , { position : 'bottom-right' } )
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ const toggleMobileUserMenu = (event) => {
7676 </div >
7777 </template >
7878 </Drawer >
79- <ScrollTop :pt =" { root: { class: 'right-4 md:right-8 bottom-4 md:bottom-8' } }" />
8079 </Teleport >
8180 </ClientOnly >
8281 <div class =" min-h-screen" >
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ const toggleMobileUserMenu = (event) => {
7474 </div >
7575 </template >
7676 </Drawer >
77- <ScrollTop :pt =" { root: { class: 'right-4 md:right-8 bottom-4 md:bottom-8' } }" />
7877 </Teleport >
7978 </ClientOnly >
8079
You can’t perform that action at this time.
0 commit comments