diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-08-30 00:18:03 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-08-30 00:18:03 +0300 |
commit | 87486cf61ca198dcd155a37f35817aa9bc0f2726 (patch) | |
tree | 4ea50f291b1d549674cc80503a24a1a5595aab85 /src/containers/Page | |
parent | 96f1c8f86fc973ca66c8725a86b6cf277adb9c72 (diff) | |
download | which-ui-87486cf61ca198dcd155a37f35817aa9bc0f2726.tar.gz |
display snackprovider in different place if it is desktop
Diffstat (limited to 'src/containers/Page')
-rw-r--r-- | src/containers/Page/Page.tsx | 9 |
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}> |