mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 07:22:10 -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`
|
const Navbar = styled.div`
|
||||||
z-index: 100;
|
z-index: 500;
|
||||||
max-width: 500px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 500px;
|
||||||
height: var(--bottom-navigation-height);
|
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} />
|
<Message size={24} />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|
Loading…
Reference in a new issue