File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/@react-spectrum/toast/src Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11
11
*/
12
12
13
13
import { AriaToastRegionProps , useToastRegion } from '@react-aria/toast' ;
14
- import { classNames , useIsMobileDevice } from '@react-spectrum/utils' ;
14
+ import { classNames } from '@react-spectrum/utils' ;
15
15
import { FocusRing } from '@react-aria/focus' ;
16
16
import { Provider } from '@react-spectrum/provider' ;
17
17
import React , { ReactElement , ReactNode , useRef } from 'react' ;
@@ -29,7 +29,6 @@ export function Toaster(props: ToastContainerProps): ReactElement {
29
29
children,
30
30
state
31
31
} = props ;
32
- let containerPlacement = useIsMobileDevice ( ) ? 'center' : 'right' ;
33
32
34
33
let ref = useRef ( ) ;
35
34
let { regionProps} = useToastRegion ( props , state , ref ) ;
@@ -41,7 +40,7 @@ export function Toaster(props: ToastContainerProps): ReactElement {
41
40
{ ...regionProps }
42
41
ref = { ref }
43
42
data-position = "bottom"
44
- data-placement = { containerPlacement }
43
+ data-placement = "center"
45
44
className = { classNames (
46
45
toastContainerStyles ,
47
46
'react-spectrum-ToastContainer'
You can’t perform that action at this time.
0 commit comments