Skip to content

Commit ff4b2f8

Browse files
committed
lint
1 parent 4735245 commit ff4b2f8

File tree

5 files changed

+22
-24
lines changed

5 files changed

+22
-24
lines changed

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/cell-renderer.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ export function CellRenderer({
4242
}}
4343
>
4444
<span className={boolValue ? 'text-green-500' : 'text-[var(--text-tertiary)]'}>
45-
{isNull ? <span className='text-[var(--text-muted)] italic'></span> : boolValue ? 'true' : 'false'}
45+
{isNull ? (
46+
<span className='text-[var(--text-muted)] italic'></span>
47+
) : boolValue ? (
48+
'true'
49+
) : (
50+
'false'
51+
)}
4652
</span>
4753
</button>
4854
)
@@ -51,7 +57,7 @@ export function CellRenderer({
5157
if (isNull) {
5258
return (
5359
<span
54-
className='text-[var(--text-muted)] italic cursor-text'
60+
className='cursor-text text-[var(--text-muted)] italic'
5561
onDoubleClick={(e) => {
5662
e.stopPropagation()
5763
onDoubleClick()
@@ -88,7 +94,7 @@ export function CellRenderer({
8894
if (column.type === 'number') {
8995
return (
9096
<span
91-
className='font-mono text-[12px] text-[var(--text-secondary)] cursor-text'
97+
className='cursor-text font-mono text-[12px] text-[var(--text-secondary)]'
9298
onDoubleClick={(e) => {
9399
e.stopPropagation()
94100
onDoubleClick()
@@ -123,7 +129,7 @@ export function CellRenderer({
123129
} catch {
124130
return (
125131
<span
126-
className='text-[var(--text-primary)] cursor-text'
132+
className='cursor-text text-[var(--text-primary)]'
127133
onDoubleClick={(e) => {
128134
e.stopPropagation()
129135
onDoubleClick()
@@ -160,7 +166,7 @@ export function CellRenderer({
160166

161167
return (
162168
<span
163-
className='text-[var(--text-primary)] cursor-text'
169+
className='cursor-text text-[var(--text-primary)]'
164170
onDoubleClick={(e) => {
165171
e.stopPropagation()
166172
onDoubleClick()

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/inline-cell-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function InlineCellEditor({ value, column, onSave, onCancel }: InlineCell
5757
onChange={(e) => setDraft(e.target.value)}
5858
onKeyDown={handleKeyDown}
5959
onBlur={handleSave}
60-
className='h-full w-full border-none bg-transparent text-[13px] text-[var(--text-primary)] outline-none ring-1 ring-[var(--accent)] ring-inset rounded-[2px] px-[4px] py-[2px]'
60+
className='h-full w-full rounded-[2px] border-none bg-transparent px-[4px] py-[2px] text-[13px] text-[var(--text-primary)] outline-none ring-1 ring-[var(--accent)] ring-inset'
6161
/>
6262
)
6363
}

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-row-cells.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,11 @@ export const TableRowCells = React.memo(function TableRowCells({
3434
}: TableRowCellsProps) {
3535
return (
3636
<TableRow
37-
className={cn(
38-
'group hover:bg-[var(--surface-4)]',
39-
isSelected && 'bg-[var(--surface-5)]'
40-
)}
37+
className={cn('group hover:bg-[var(--surface-4)]', isSelected && 'bg-[var(--surface-5)]')}
4138
onContextMenu={(e) => onContextMenu(e, row)}
4239
>
4340
<TableCell>
44-
<Checkbox
45-
size='sm'
46-
checked={isSelected}
47-
onCheckedChange={() => onSelectRow(row.id)}
48-
/>
41+
<Checkbox size='sm' checked={isSelected} onCheckedChange={() => onSelectRow(row.id)} />
4942
</TableCell>
5043
{columns.map((column) => (
5144
<TableCell key={column.name}>

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-viewer.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
TableHeader,
1212
TableRow,
1313
} from '@/components/emcn'
14-
import { useUpdateTableRow } from '@/hooks/queries/tables'
1514
import type { TableRow as TableRowType } from '@/lib/table'
15+
import { useUpdateTableRow } from '@/hooks/queries/tables'
1616
import { useContextMenu, useRowSelection, useTableData } from '../hooks'
1717
import type { CellViewerData, EditingCell, QueryOptions } from '../lib/types'
1818
import { ActionBar } from './action-bar'
@@ -60,8 +60,11 @@ export function TableViewer() {
6060

6161
const { selectedRows, handleSelectAll, handleSelectRow, clearSelection } = useRowSelection(rows)
6262

63-
const { contextMenu, handleRowContextMenu: baseHandleRowContextMenu, closeContextMenu } =
64-
useContextMenu()
63+
const {
64+
contextMenu,
65+
handleRowContextMenu: baseHandleRowContextMenu,
66+
closeContextMenu,
67+
} = useContextMenu()
6568

6669
const updateRowMutation = useUpdateTableRow({ workspaceId, tableId })
6770

@@ -278,9 +281,7 @@ export function TableViewer() {
278281
row={row}
279282
columns={columns}
280283
isSelected={selectedRows.has(row.id)}
281-
editingColumnName={
282-
editingCell?.rowId === row.id ? editingCell.columnName : null
283-
}
284+
editingColumnName={editingCell?.rowId === row.id ? editingCell.columnName : null}
284285
onCellClick={handleCellClick}
285286
onDoubleClick={handleCellDoubleClick}
286287
onSave={handleInlineSave}

apps/sim/connectors/google-docs/google-docs.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ export const googleDocsConnector: ConnectorConfig = {
178178
oauth: {
179179
required: true,
180180
provider: 'google-docs',
181-
requiredScopes: [
182-
'https://www.googleapis.com/auth/drive',
183-
],
181+
requiredScopes: ['https://www.googleapis.com/auth/drive'],
184182
},
185183

186184
configFields: [

0 commit comments

Comments
 (0)