mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
fix(ui): fix SlotClone error in file card by reformatting DropdownMenuTrigger
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import { ObjectInfo } from '@/dtos/s3'
|
import { ObjectInfo } from '@/dtos/s3'
|
||||||
import {
|
import {
|
||||||
DeleteObjectCommand,
|
DeleteObjectCommand,
|
||||||
GetObjectCommand,
|
GetObjectCommand,
|
||||||
HeadObjectCommand,
|
HeadObjectCommand,
|
||||||
ListObjectsV2Command,
|
ListObjectsV2Command,
|
||||||
PutObjectCommand,
|
PutObjectCommand,
|
||||||
S3Client,
|
S3Client,
|
||||||
} from '@aws-sdk/client-s3'
|
} from '@aws-sdk/client-s3'
|
||||||
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
|
import { getSignedUrl } from '@aws-sdk/s3-request-presigner'
|
||||||
import * as crypto from 'crypto'
|
import * as crypto from 'crypto'
|
||||||
|
|||||||
@@ -177,9 +177,5 @@ export function FileBrowserContextMenu({
|
|||||||
</ContextMenuContent>
|
</ContextMenuContent>
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return <>{contextMenuContent}</>
|
||||||
<>
|
|
||||||
{contextMenuContent}
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -267,7 +267,8 @@ export function FileCard({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<DropdownMenu modal={false}>
|
<DropdownMenu modal={false}>
|
||||||
<DropdownMenuTrigger asChild> <Button
|
<DropdownMenuTrigger asChild>
|
||||||
|
<Button
|
||||||
size="icon-sm"
|
size="icon-sm"
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
|
|||||||
Reference in New Issue
Block a user