Use SelectFile component in more places

This commit is contained in:
Gregory Schier
2024-07-23 11:54:35 -07:00
parent 51487d5412
commit 9e04226097
7 changed files with 79 additions and 44 deletions

View File

@@ -60,10 +60,11 @@ type BaseStackProps = HTMLAttributes<HTMLElement> & {
space?: keyof typeof gapClasses;
alignItems?: 'start' | 'center' | 'stretch' | 'end';
justifyContent?: 'start' | 'center' | 'end' | 'between';
wrap?: boolean;
};
const BaseStack = forwardRef(function BaseStack(
{ className, alignItems, justifyContent, children, as, ...props }: BaseStackProps,
{ className, alignItems, justifyContent, wrap, children, as, ...props }: BaseStackProps,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
ref: ForwardedRef<any>,
) {
@@ -74,6 +75,7 @@ const BaseStack = forwardRef(function BaseStack(
className={classNames(
className,
'flex',
wrap && 'flex-wrap',
alignItems === 'center' && 'items-center',
alignItems === 'start' && 'items-start',
alignItems === 'stretch' && 'items-stretch',