aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-08-30 00:18:03 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-08-30 00:18:03 +0300
commit87486cf61ca198dcd155a37f35817aa9bc0f2726 (patch)
tree4ea50f291b1d549674cc80503a24a1a5595aab85
parent96f1c8f86fc973ca66c8725a86b6cf277adb9c72 (diff)
downloadwhich-ui-87486cf61ca198dcd155a37f35817aa9bc0f2726.tar.gz
display snackprovider in different place if it is desktop
-rw-r--r--src/containers/Page/Page.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/containers/Page/Page.tsx b/src/containers/Page/Page.tsx
index 4aa48eb..272698b 100644
--- a/src/containers/Page/Page.tsx
+++ b/src/containers/Page/Page.tsx
@@ -42,10 +42,11 @@ const Page: React.FC = () => {
<SnackbarProvider
preventDuplicate
maxSnack={isMobile ? 1 : 3}
- anchorOrigin={{
- vertical: 'top',
- horizontal: 'right'
- }}
+ anchorOrigin={
+ isMobile
+ ? { vertical: 'top', horizontal: 'right' }
+ : { vertical: 'bottom', horizontal: 'left'}
+ }
>
<div className={classes.root}>
<ErrorBoundary FallbackComponent={ErrorFallback}>