From baf821e82bcd4b363a341a9d613ec17dccff3785 Mon Sep 17 00:00:00 2001 From: Burcu Noyan Date: Mon, 6 Nov 2023 16:14:54 -0500 Subject: [PATCH] make new-file-button component --- .../components/operator-mode/code-submode.gts | 56 ++----------------- .../operator-mode/new-file-button.gts | 50 +++++++++++++++++ 2 files changed, 55 insertions(+), 51 deletions(-) create mode 100644 packages/host/app/components/operator-mode/new-file-button.gts diff --git a/packages/host/app/components/operator-mode/code-submode.gts b/packages/host/app/components/operator-mode/code-submode.gts index b902b225dc..90467db343 100644 --- a/packages/host/app/components/operator-mode/code-submode.gts +++ b/packages/host/app/components/operator-mode/code-submode.gts @@ -1,5 +1,5 @@ import { registerDestructor } from '@ember/destroyable'; -import { fn, array } from '@ember/helper'; +import { fn } from '@ember/helper'; import { on } from '@ember/modifier'; import { action } from '@ember/object'; import type Owner from '@ember/owner'; @@ -26,13 +26,11 @@ import { Button, LoadingIndicator, ResizablePanelGroup, - BoxelDropdown, - Menu, } from '@cardstack/boxel-ui/components'; import type { PanelContext } from '@cardstack/boxel-ui/components'; -import { cn, and, not, menuItem } from '@cardstack/boxel-ui/helpers'; -import { CheckMark, File, IconPlus } from '@cardstack/boxel-ui/icons'; +import { cn, and, not } from '@cardstack/boxel-ui/helpers'; +import { CheckMark, File } from '@cardstack/boxel-ui/icons'; import { Deferred } from '@cardstack/runtime-common'; @@ -87,6 +85,7 @@ import CardURLBar from './card-url-bar'; import DeleteModal from './delete-modal'; import DetailPanel from './detail-panel'; import SubmodeLayout from './submode-layout'; +import NewFileButton from './new-file-button'; import { getCard } from '@cardstack/host/resources/card-resource'; @@ -675,10 +674,6 @@ export default class CodeSubmode extends Component { this.operatorModeStateService.updateCodePath(codePath); } - @action private toggleNewInstanceModal() { - // TODO - } -