Skip to content

Commit 91dedb0

Browse files
BillLeoutsakosvl346Bill Leoutsakos
andauthored
improvement(ui): reuse chips for custom block upload actions (#8084)
Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
1 parent 7dfa195 commit 91dedb0

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎apps/sim/ee/custom-blocks/components/custom-block-detail.tsx‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useMemo, useState } from 'react'
44
import {
55
Badge,
66
Button,
7+
Chip,
78
ChipCombobox,
89
ChipConfirmModal,
910
ChipInput,
@@ -533,26 +534,23 @@ export function CustomBlockDetail({ blockId, workspaceId, onBack }: CustomBlockD
533534
) : null}
534535
</UploadPreviewButton>
535536
</DropZone>
536-
<div className='flex gap-2'>
537-
<Button
537+
<div className='flex items-center gap-2'>
538+
<Chip
538539
type='button'
539540
variant='outline'
540-
size='sm'
541541
onClick={iconUpload.handleThumbnailClick}
542542
disabled={iconUpload.isUploading || !canManageBlock}
543-
className='text-small'
544543
>
545544
{iconUrl ? 'Change' : 'Upload'}
546-
</Button>
545+
</Chip>
547546
{iconUrl && (
548547
<Button
549548
type='button'
550549
variant='ghost'
551-
size='sm'
550+
size='icon'
552551
onClick={iconUpload.handleRemove}
553552
aria-label='Remove icon'
554553
disabled={iconUpload.isUploading || !canManageBlock}
555-
className='text-[var(--text-muted)] text-small hover:text-[var(--text-primary)]'
556554
>
557555
<X className='size-[14px]' />
558556
</Button>

0 commit comments

Comments
 (0)