feat: wip bank transaction matching

This commit is contained in:
Ahmed Bouhuolia
2024-07-03 18:49:21 +02:00
parent 67b519db61
commit a5eb42edaf
16 changed files with 39 additions and 118 deletions

View File

@@ -1,25 +1,25 @@
import React from 'react';
import { AppShellProvider, useAppShellContext } from './AppShellProvider';
import { Box } from '../Layout';
import { AppShellProvider, useAppShellContext } from './AppContentShellProvider';
import { Box, BoxProps } from '../../Layout';
import styles from './AppShell.module.scss';
interface AppShellProps {
interface AppContentShellProps {
topbarOffset?: number;
mainProps: any;
asideProps: any;
mainProps?: BoxProps;
asideProps?: BoxProps;
children: React.ReactNode;
hideAside?: boolean;
hideMain?: boolean;
}
export function AppShell({
export function AppContentShell({
asideProps,
mainProps,
topbarOffset = 0,
hideAside = false,
hideMain = false,
...restProps
}: AppShellProps) {
}: AppContentShellProps) {
return (
<AppShellProvider
mainProps={mainProps}
@@ -33,29 +33,29 @@ export function AppShell({
);
}
AppShell.Main = AppShellMain;
AppShell.Aside = AppShellAside;
interface AppContentShellMainProps extends BoxProps {}
function AppShellMain({ ...props }) {
function AppContentShellMain({ ...props }: AppContentShellMainProps) {
const { hideMain } = useAppShellContext();
if (hideMain === true) {
return null;
}
return <Box {...props} className={styles.main} />;
}
interface AppShellAsideProps {
interface AppContentShellAsideProps extends BoxProps {
children: React.ReactNode;
}
function AppShellAside({ ...props }: AppShellAsideProps) {
function AppContentShellAside({ ...props }: AppContentShellAsideProps) {
const { hideAside } = useAppShellContext();
console.log(hideAside, 'hideAsidehideAsidehideAsidehideAside');
if (hideAside === true) {
return null;
}
return <Box {...props} className={styles.aside} />;
}
AppContentShell.Main = AppContentShellMain;
AppContentShell.Aside = AppContentShellAside;

View File

@@ -0,0 +1 @@
export * from './AppContentShell';

View File

@@ -0,0 +1 @@
export * from './AppContentShell';