mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
fix(bottom navigation): change logic to avoid getting trapped in heck (friends list)
This commit is contained in:
parent
e758b23ac3
commit
9387575372
1 changed files with 9 additions and 4 deletions
|
@ -17,10 +17,10 @@ const Base = styled.div`
|
|||
`;
|
||||
|
||||
const Navbar = styled.div`
|
||||
z-index: 100;
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
z-index: 500;
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
max-width: 500px;
|
||||
height: var(--bottom-navigation-height);
|
||||
`;
|
||||
|
||||
|
@ -71,7 +71,12 @@ export default observer(() => {
|
|||
}
|
||||
}
|
||||
|
||||
history.push(layout.getLastHomePath());
|
||||
const path = layout.getLastHomePath();
|
||||
if (path === "/friends") {
|
||||
history.push("/");
|
||||
} else {
|
||||
history.push(path);
|
||||
}
|
||||
}}>
|
||||
<Message size={24} />
|
||||
</IconButton>
|
||||
|
|
Loading…
Reference in a new issue