From 41dcca1ae01ced8071df4275f85dd15a5a165549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zhan=20Efe=20Meral?= Date: Sun, 4 Aug 2024 22:56:45 +0200 Subject: [PATCH] refactor: - Update imports in FunctionEditor and BlockAdder to reflect the new folder structure --- apps/next/components/editor/FunctionEditor.tsx | 2 +- apps/next/components/editor/components/BlockAdder.tsx | 2 +- .../components/{ => editor/components}/FunctionCombobox.tsx | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename apps/next/components/{ => editor/components}/FunctionCombobox.tsx (100%) diff --git a/apps/next/components/editor/FunctionEditor.tsx b/apps/next/components/editor/FunctionEditor.tsx index 487cefc..4cf66aa 100644 --- a/apps/next/components/editor/FunctionEditor.tsx +++ b/apps/next/components/editor/FunctionEditor.tsx @@ -1,6 +1,6 @@ import { FunctionCallBlock, FunctionInfo } from "@ozhanefe/ts-codegenerator"; import React, { useState } from "react"; -import { FunctionCombobox } from "../FunctionCombobox"; +import { FunctionCombobox } from "./components/FunctionCombobox"; import { useCodeGenerator } from "@/contexts/CodeGeneratorContext"; import { Input } from "@ui/input"; import { Button } from "@ui/button"; diff --git a/apps/next/components/editor/components/BlockAdder.tsx b/apps/next/components/editor/components/BlockAdder.tsx index 7dfb7b9..0496233 100644 --- a/apps/next/components/editor/components/BlockAdder.tsx +++ b/apps/next/components/editor/components/BlockAdder.tsx @@ -14,7 +14,7 @@ import { FunctionInfo, findAndUpdateBlock, } from "@ozhanefe/ts-codegenerator"; -import { FunctionCombobox } from "@/components/FunctionCombobox"; +import { FunctionCombobox } from "@/components/editor/components/FunctionCombobox"; type BlockType = CodeBlock["blockType"]; diff --git a/apps/next/components/FunctionCombobox.tsx b/apps/next/components/editor/components/FunctionCombobox.tsx similarity index 100% rename from apps/next/components/FunctionCombobox.tsx rename to apps/next/components/editor/components/FunctionCombobox.tsx