feat: residues accounting

This commit is contained in:
2025-01-14 21:35:06 +04:00
parent fec6b13972
commit c45d2ac20a
74 changed files with 2994 additions and 28 deletions

View File

@@ -9,4 +9,8 @@
.container {
padding: rem(20);
@media only screen and (max-width: 768px) {
padding: 0 !important;
}
}

View File

@@ -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%"}