diff --git a/app/components/workbench/Workbench.client.tsx b/app/components/workbench/Workbench.client.tsx index 42315ba2..1408a648 100644 --- a/app/components/workbench/Workbench.client.tsx +++ b/app/components/workbench/Workbench.client.tsx @@ -24,6 +24,7 @@ import { EditorPanel } from './EditorPanel'; import { Preview } from './Preview'; import useViewport from '~/lib/hooks'; import { PushToGitHubDialog } from '~/components/@settings/tabs/connections/components/PushToGitHubDialog'; +import * as DropdownMenu from '@radix-ui/react-dropdown-menu'; interface WorkspaceProps { chatStarted?: boolean; @@ -372,24 +373,11 @@ export const Workbench = memo( >
-
+
{selectedView === 'code' && (
- { - workbenchStore.downloadZip(); - }} - > -
- Download Code - - - {isSyncing ?
:
} - {isSyncing ? 'Syncing...' : 'Sync Files'} - { @@ -399,12 +387,66 @@ export const Workbench = memo(
Toggle Terminal - setIsPushDialogOpen(true)}> -
- Push to GitHub - + + + + + + { + workbenchStore.downloadZip(); + }} + > +
+
+ Download Code +
+
+ +
+ {isSyncing ?
:
} + {isSyncing ? 'Syncing...' : 'Sync Files'} +
+ + setIsPushDialogOpen(true)} + > +
+
+ Push to GitHub +
+ + +
)} + {selectedView === 'diff' && ( )}