feat: reconcile matching transactions

This commit is contained in:
Ahmed Bouhuolia
2024-07-04 19:21:05 +02:00
parent 168883a933
commit 202179ec0b
14 changed files with 440 additions and 19 deletions

View File

@@ -21,4 +21,5 @@
flex-direction: column;
flex: 1 1 auto;
background-color: #fff;
overflow-y: auto;
}

View File

@@ -1,13 +1,16 @@
import { Button, Classes } from '@blueprintjs/core';
import { Box, Group } from '../Layout';
import clsx from 'classnames';
import { Box, BoxProps, Group } from '../Layout';
import { Icon } from '../Icon';
import styles from './Aside.module.scss';
interface AsideProps {
interface AsideProps extends BoxProps {
title?: string;
onClose?: () => void;
children?: React.ReactNode;
hideCloseButton?: boolean;
classNames?: Record<string, string>;
className?: string;
}
export function Aside({
@@ -15,13 +18,15 @@ export function Aside({
onClose,
children,
hideCloseButton,
classNames,
className
}: AsideProps) {
const handleClose = () => {
onClose && onClose();
};
return (
<Box className={styles.root}>
<Group position="apart" className={styles.title}>
<Box className={clsx(styles.root, className, classNames?.root)}>
<Group position="apart" className={clsx(styles.title, classNames?.title)}>
{title}
{hideCloseButton !== true && (
@@ -34,7 +39,23 @@ export function Aside({
/>
)}
</Group>
<Box className={styles.content}>{children}</Box>
{children}
</Box>
);
}
}
interface AsideContentProps extends BoxProps {}
function AsideContent({ ...props }: AsideContentProps) {
return <Box {...props} className={clsx(styles.content, props?.className)} />;
}
interface AsideFooterProps extends BoxProps {}
function AsideFooter({ ...props }: AsideFooterProps) {
return <Box {...props} />;
}
Aside.Body = AsideContent;
Aside.Footer = AsideFooter;