fix: only allow to swipe left if there is a right sidebar
This commit is contained in:
parent
8bb4ef8b54
commit
5ef8f18060
@ -121,6 +121,7 @@ export const Application: React.FC<ApplicationProps> = (props) => {
|
||||
})
|
||||
},
|
||||
onSwipedLeft: () => {
|
||||
if (isGuildsChannelsPath(path)) {
|
||||
if (visibleSidebars.left) {
|
||||
return setVisibleSidebars({ ...visibleSidebars, left: false })
|
||||
}
|
||||
@ -129,6 +130,7 @@ export const Application: React.FC<ApplicationProps> = (props) => {
|
||||
right: true
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
|
Reference in New Issue
Block a user