mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
remove selection dialog from certain list views
This commit is contained in:
@@ -287,6 +287,7 @@ export interface ItemGridListProps {
|
||||
enableDrag?: boolean;
|
||||
enableExpansion?: boolean;
|
||||
enableSelection?: boolean;
|
||||
enableSelectionDialog?: boolean;
|
||||
gap?: 'lg' | 'md' | 'sm' | 'xl' | 'xs';
|
||||
getRowId?: ((item: unknown) => string) | string;
|
||||
initialTop?: {
|
||||
@@ -309,6 +310,7 @@ const BaseItemGridList = ({
|
||||
enableDrag = true,
|
||||
enableExpansion = false,
|
||||
enableSelection = true,
|
||||
enableSelectionDialog = true,
|
||||
gap = 'sm',
|
||||
getRowId,
|
||||
initialTop,
|
||||
@@ -745,7 +747,7 @@ const BaseItemGridList = ({
|
||||
</AutoSizer>
|
||||
<AnimatePresence presenceAffectsLayout>
|
||||
<ExpandedContainer internalState={internalState} itemType={itemType} />
|
||||
<SelectionDialog internalState={internalState} />
|
||||
{enableSelectionDialog && <SelectionDialog internalState={internalState} />}
|
||||
</AnimatePresence>
|
||||
</motion.div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user