mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 23:17:59 -05:00
fix(export): swap upload & download icons (#1013)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import { useState } from 'react'
|
||||
import { Download } from 'lucide-react'
|
||||
import { Upload } from 'lucide-react'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
|
||||
import { createLogger } from '@/lib/logs/console/logger'
|
||||
@@ -81,7 +81,7 @@ export function ExportControls({ disabled = false }: ExportControlsProps) {
|
||||
<TooltipTrigger asChild>
|
||||
{isDisabled ? (
|
||||
<div className='inline-flex h-12 w-12 cursor-not-allowed items-center justify-center rounded-[11px] border bg-card text-card-foreground opacity-50 shadow-xs transition-colors'>
|
||||
<Download className='h-5 w-5' />
|
||||
<Upload className='h-5 w-5' />
|
||||
</div>
|
||||
) : (
|
||||
<Button
|
||||
@@ -89,7 +89,7 @@ export function ExportControls({ disabled = false }: ExportControlsProps) {
|
||||
onClick={handleExportYaml}
|
||||
className='h-12 w-12 rounded-[11px] border bg-card text-card-foreground shadow-xs hover:bg-secondary'
|
||||
>
|
||||
<Download className='h-5 w-5' />
|
||||
<Upload className='h-5 w-5' />
|
||||
<span className='sr-only'>Export as YAML</span>
|
||||
</Button>
|
||||
)}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||
import { logger } from '@sentry/nextjs'
|
||||
import { Folder, Plus, Upload } from 'lucide-react'
|
||||
import { Download, Folder, Plus } from 'lucide-react'
|
||||
import { useParams, useRouter } from 'next/navigation'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
|
||||
@@ -359,7 +359,7 @@ export function CreateMenu({ onCreateWorkflow, isCreatingWorkflow = false }: Cre
|
||||
onClick={handleImportWorkflow}
|
||||
disabled={isImporting}
|
||||
>
|
||||
<Upload className={iconClassName} />
|
||||
<Download className={iconClassName} />
|
||||
<span className={textClassName}>
|
||||
{isImporting ? 'Importing...' : 'Import workflow'}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user