Skip to content

Commit 8b73ec0

Browse files
committed
Set snackbar position to top center
1 parent 239f7e9 commit 8b73ec0

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

frontend/src/Manage/Manage.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export const Manage = () => {
5555
})
5656
const [headerTitle, setHeaderTitle] = useState<string>('')
5757
const theme = useTheme()
58-
const isMobile = useMediaQuery(theme.breakpoints.down('sm'))
5958

6059
useEffect(() => {
6160
const getUserInfo = async () => {
@@ -118,11 +117,7 @@ export const Manage = () => {
118117
open={toastData.message.length > 0}
119118
autoHideDuration={4000}
120119
onClose={() => setToastData({ message: '', type: 'info' })}
121-
anchorOrigin={
122-
isMobile
123-
? { vertical: 'bottom', horizontal: 'center' }
124-
: { vertical: 'bottom', horizontal: 'right' }
125-
}
120+
anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
126121
>
127122
<Alert
128123
severity={toastData.type}

0 commit comments

Comments
 (0)