Skip to content

Commit c45da7b

Browse files
committed
Lint
1 parent cfc261d commit c45da7b

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ import { useWorkflowExecution } from '../../hooks/use-workflow-execution'
5858
import { DeploymentControls } from './components/deployment-controls/deployment-controls'
5959
import { ExportControls } from './components/export-controls/export-controls'
6060
import { HistoryDropdownItem } from './components/history-dropdown-item/history-dropdown-item'
61-
6261
import { MarketplaceModal } from './components/marketplace-modal/marketplace-modal'
6362
import { NotificationDropdownItem } from './components/notification-dropdown-item/notification-dropdown-item'
6463
import { UserAvatarStack } from './components/user-avatar-stack/user-avatar-stack'

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/create-menu/create-menu.tsx

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

3-
import { useState, useRef } from 'react'
3+
import { useRef, useState } from 'react'
44
import { logger } from '@sentry/nextjs'
55
import { ChevronRight, File, Folder, Plus, Upload } from 'lucide-react'
66
import { useParams } from 'next/navigation'
@@ -11,9 +11,9 @@ import { Label } from '@/components/ui/label'
1111
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
1212
import { Separator } from '@/components/ui/separator'
1313
import { cn } from '@/lib/utils'
14-
import { useFolderStore } from '@/stores/folders/store'
1514
import { useUserPermissionsContext } from '@/app/workspace/[workspaceId]/w/components/providers/workspace-permissions-provider'
16-
import { ImportControls, ImportControlsRef } from './import-controls'
15+
import { useFolderStore } from '@/stores/folders/store'
16+
import { ImportControls, type ImportControlsRef } from './import-controls'
1717

1818
interface CreateMenuProps {
1919
onCreateWorkflow: (folderId?: string) => void
@@ -134,7 +134,7 @@ export function CreateMenu({
134134
<File className='h-4 w-4' />
135135
{isCreatingWorkflow ? 'Creating...' : 'New Workflow'}
136136
</button>
137-
137+
138138
<button
139139
className='flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground'
140140
onClick={handleCreateFolder}
@@ -146,7 +146,7 @@ export function CreateMenu({
146146
{userPermissions.canEdit && (
147147
<>
148148
<Separator className='my-1' />
149-
149+
150150
<Popover open={isImportSubmenuOpen} onOpenChange={setIsImportSubmenuOpen}>
151151
<PopoverTrigger asChild>
152152
<button
@@ -177,9 +177,7 @@ export function CreateMenu({
177177
<Upload className='h-4 w-4' />
178178
<div className='flex flex-col items-start'>
179179
<span>YAML</span>
180-
<span className='text-muted-foreground text-xs'>
181-
.yaml or .yml
182-
</span>
180+
<span className='text-muted-foreground text-xs'>.yaml or .yml</span>
183181
</div>
184182
</button>
185183
</PopoverContent>
@@ -190,7 +188,7 @@ export function CreateMenu({
190188
</Popover>
191189

192190
{/* Import Controls Component - handles all import functionality */}
193-
<ImportControls
191+
<ImportControls
194192
ref={importControlsRef}
195193
disabled={!userPermissions.canEdit}
196194
onClose={() => {

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/create-menu/import-controls.tsx

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

33
import { forwardRef, useImperativeHandle, useRef, useState } from 'react'
4-
import { AlertCircle, CheckCircle, FileText, Upload } from 'lucide-react'
4+
import { AlertCircle, CheckCircle } from 'lucide-react'
55
import { useParams, useRouter } from 'next/navigation'
66
import { Alert, AlertDescription } from '@/components/ui/alert'
77
import { Button } from '@/components/ui/button'
@@ -187,8 +187,8 @@ export const ImportControls = forwardRef<ImportControlsRef, ImportControlsProps>
187187
<DialogHeader>
188188
<DialogTitle>Import Workflow from YAML</DialogTitle>
189189
<DialogDescription>
190-
Review the YAML content below and click "Import Workflow" to create a new workflow with the
191-
blocks and connections defined in the YAML.
190+
Review the YAML content below and click "Import Workflow" to create a new workflow
191+
with the blocks and connections defined in the YAML.
192192
</DialogDescription>
193193
</DialogHeader>
194194

@@ -282,4 +282,4 @@ blocks:
282282
}
283283
)
284284

285-
ImportControls.displayName = 'ImportControls'
285+
ImportControls.displayName = 'ImportControls'

0 commit comments

Comments
 (0)