mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-23 14:17:42 +00:00
fix(ui): fix SlotClone error in file card by reformatting DropdownMenuTrigger
This commit is contained in:
@@ -1214,7 +1214,7 @@ describe('AssetService', () => {
|
||||
// 4. Verify some items were processed in S3
|
||||
// We don't know the order, but if Folder A was in the first 100,
|
||||
// then its synchronous cascade will have wiped the remaining children.
|
||||
|
||||
|
||||
// 5. Trigger the purge job for the SECOND batch
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
await (assetService as any).purgePendingAssets()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ObjectInfo } from '@/dtos/s3'
|
||||
import {
|
||||
DeleteObjectCommand,
|
||||
GetObjectCommand,
|
||||
HeadObjectCommand,
|
||||
ListObjectsV2Command,
|
||||
PutObjectCommand,
|
||||
S3Client,
|
||||
DeleteObjectCommand,
|
||||
GetObjectCommand,
|
||||
HeadObjectCommand,
|
||||
ListObjectsV2Command,
|
||||
PutObjectCommand,
|
||||
S3Client,
|
||||
} from '@aws-sdk/client-s3'
|
||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
|
||||
import * as crypto from 'crypto'
|
||||
|
||||
@@ -177,9 +177,5 @@ export function FileBrowserContextMenu({
|
||||
</ContextMenuContent>
|
||||
)
|
||||
|
||||
return (
|
||||
<>
|
||||
{contextMenuContent}
|
||||
</>
|
||||
)
|
||||
return <>{contextMenuContent}</>
|
||||
}
|
||||
|
||||
@@ -267,7 +267,8 @@ export function FileCard({
|
||||
</p>
|
||||
</div>
|
||||
<DropdownMenu modal={false}>
|
||||
<DropdownMenuTrigger asChild> <Button
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button
|
||||
size="icon-sm"
|
||||
variant="ghost"
|
||||
className="cursor-pointer"
|
||||
|
||||
Reference in New Issue
Block a user