social icons + background size
This commit is contained in:
@@ -150,10 +150,11 @@ const UploadBoxDraggble: FC<Props> = (props: Props) => {
|
||||
</div>
|
||||
|
||||
{
|
||||
files.length > 0 || perviews ? (
|
||||
(perviews && perviews.length > 0) || files.length > 0 ? (
|
||||
<div className='mt-4 flex gap-4 items-center'>
|
||||
{/* اگر preview از props وجود دارد، فقط previewها را نمایش بده */}
|
||||
{
|
||||
perviews && perviews.map((item, index) => {
|
||||
perviews && perviews.length > 0 ? perviews.map((item, index) => {
|
||||
return (
|
||||
<div key={index} className='flex items-center gap-2'>
|
||||
<div key={index} className='flex relative items-center gap-2'>
|
||||
@@ -173,10 +174,7 @@ const UploadBoxDraggble: FC<Props> = (props: Props) => {
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
{
|
||||
files.map((file, index) => {
|
||||
}) : files.map((file, index) => {
|
||||
if (props.isFile) {
|
||||
return (
|
||||
<div key={index} className='flex border p-2 rounded-lg items-center gap-2'>
|
||||
|
||||
Reference in New Issue
Block a user