Skip to content

Commit 34a9ca5

Browse files
committed
improvement(enrichments): align enrichments sidebar with design system
1 parent 925dd87 commit 34a9ca5

3 files changed

Lines changed: 10 additions & 14 deletions

File tree

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/enrichments-sidebar/enrichment-config.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import { useState } from 'react'
44
import { toError } from '@sim/utils/errors'
55
import { generateId } from '@sim/utils/id'
6-
import { X } from 'lucide-react'
76
import {
87
Badge,
98
Button,
@@ -15,7 +14,7 @@ import {
1514
Switch,
1615
toast,
1716
} from '@/components/emcn'
18-
import { ArrowLeft } from '@/components/emcn/icons'
17+
import { ArrowLeft, X } from '@/components/emcn/icons'
1918
import type { AddWorkflowGroupBodyInput } from '@/lib/api/contracts/tables'
2019
import { cn } from '@/lib/core/utils/cn'
2120
import type { ColumnDefinition, WorkflowGroup, WorkflowGroupOutput } from '@/lib/table'

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/enrichments-sidebar/enrichments-sidebar.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use client'
22

33
import { useState } from 'react'
4-
import { X } from 'lucide-react'
54
import { Button, Input } from '@/components/emcn'
6-
import { Search } from '@/components/emcn/icons'
5+
import { Search, X } from '@/components/emcn/icons'
76
import { cn } from '@/lib/core/utils/cn'
87
import type { ColumnDefinition, WorkflowGroup } from '@/lib/table'
98
import { ALL_ENRICHMENTS } from '@/enrichments'
@@ -121,15 +120,14 @@ function EnrichmentsSidebarBody({
121120
<div className='flex h-full flex-col'>
122121
<div className='flex items-center justify-between border-[var(--border)] border-b px-3 py-[8.5px]'>
123122
<h2 className='font-medium text-[var(--text-primary)] text-small'>Enrichments</h2>
124-
<Button
125-
variant='ghost'
126-
size='sm'
123+
<button
124+
type='button'
127125
onClick={onClose}
128-
className='!p-1 size-7 flex-none'
126+
className='flex size-7 flex-none items-center justify-center rounded-md text-[var(--text-muted)] transition-colors hover-hover:bg-[var(--surface-hover)] hover-hover:text-[var(--text-primary)]'
129127
aria-label='Close'
130128
>
131129
<X className='size-[14px]' />
132-
</Button>
130+
</button>
133131
</div>
134132

135133
<div className='px-2 pt-3'>
@@ -155,11 +153,10 @@ function EnrichmentsSidebarBody({
155153
const Icon = enrichment.icon
156154
return (
157155
<li key={enrichment.id}>
158-
<Button
159-
variant='ghost'
156+
<button
160157
type='button'
161158
onClick={() => setSelected(enrichment)}
162-
className='flex w-full items-start justify-start gap-2.5 rounded-md px-2 py-2 text-left hover-hover:bg-[var(--surface-3)]'
159+
className='flex w-full items-start gap-2.5 rounded-md px-2 py-2 text-left transition-colors hover-hover:bg-[var(--surface-hover)]'
163160
>
164161
<Icon className='mt-0.5 size-[14px] flex-none text-[var(--text-icon)]' />
165162
<span className='flex min-w-0 flex-col gap-0.5'>
@@ -170,7 +167,7 @@ function EnrichmentsSidebarBody({
170167
{enrichment.description}
171168
</span>
172169
</span>
173-
</Button>
170+
</button>
174171
</li>
175172
)
176173
})}

apps/sim/enrichments/work-email/work-email.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { filterUndefined } from '@sim/utils/object'
2-
import { Mail } from 'lucide-react'
2+
import { Mail } from '@/components/emcn/icons'
33
import { normalizeDomain, splitName, str, toolProvider } from '@/enrichments/providers'
44
import type { EnrichmentConfig } from '@/enrichments/types'
55

0 commit comments

Comments
 (0)