feat: residues accounting
This commit is contained in:
@@ -9,4 +9,8 @@
|
||||
|
||||
.container {
|
||||
padding: rem(20);
|
||||
|
||||
@media only screen and (max-width: 768px) {
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,22 +12,26 @@ export type Props = {
|
||||
const PageWrapper: FC<Props> = ({ children }) => {
|
||||
const authState = useSelector((state: RootState) => state.auth);
|
||||
const uiState = useSelector((state: RootState) => state.ui);
|
||||
const navbarNeeded = authState.isAuthorized && !authState.isGuest;
|
||||
|
||||
return (
|
||||
<AppShell
|
||||
layout={"alt"}
|
||||
withBorder={false}
|
||||
navbar={
|
||||
authState.isAuthorized && !authState.isGuest
|
||||
navbarNeeded
|
||||
? {
|
||||
width: "130px",
|
||||
breakpoint: "sm",
|
||||
collapsed: { desktop: uiState.hideNavbar },
|
||||
collapsed: { desktop: uiState.hideNavbar, mobile: true },
|
||||
}
|
||||
: undefined
|
||||
|
||||
}>
|
||||
<AppShell.Header>
|
||||
|
||||
</AppShell.Header>
|
||||
<AppShell.Navbar>
|
||||
{authState.isAuthorized && !authState.isGuest && (
|
||||
{navbarNeeded && (
|
||||
<Flex
|
||||
className={styles["main-container"]}
|
||||
h={"100%"}
|
||||
|
||||
Reference in New Issue
Block a user