Skip to content

Commit a0ec87c

Browse files
committed
moved hooks
1 parent 10995b4 commit a0ec87c

7 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎frontend/src/components/common/tiptap-customized.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { motion } from "framer-motion";
22
import StarterKit from '@tiptap/starter-kit'
33
import { BatteryFull, List } from 'lucide-react'
4-
import useBackground from "@/hooks/use-background.hook";
4+
import useBackground from "@/feature/quote/hook/use-background.hook";
55
import { useEditor, EditorContent } from '@tiptap/react'
66
import type { QuoteFormData } from "@/model/index.model";
77
import { FloatingMenu, BubbleMenu } from '@tiptap/react/menus'
88
import TiptapToolbar from '@/components/common/tiptap-toolbar'
9-
import { useGetKeyBoardHeight } from '@/hooks/use-get-keyboard-height.hook'
9+
import { useGetKeyBoardHeight } from '@/feature/quote/hook/use-get-keyboard-height.hook'
1010
import { cn } from "@/lib/utils";
1111
import TaskList from "@tiptap/extension-task-list";
1212
import TaskItem from "@tiptap/extension-task-item";

‎frontend/src/feature/quote/component/ChooseBackgroundComponent.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { cn } from "@/lib/utils";
1212
import { Button } from "@/components/ui/button";
1313
import type { QuoteFormData } from "@/model/index.model";
1414
import { ArrowLeftIcon, Save, Shirt } from "lucide-react";
15-
import useBackground, { type Pri_set, type TextureKey } from "@/hooks/use-background.hook";
15+
import useBackground, { type Pri_set, type TextureKey } from "@/feature/quote/hook/use-background.hook";
1616

1717
interface Props {
1818
onValueUpdate: (key: keyof QuoteFormData, value: string) => void

‎frontend/src/feature/quote/component/QuoteCardComponent/QuoteCardComponent.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Link } from "@tanstack/react-router";
66
import { Button } from "@/components/ui/button";
77
import { ListTagsComponent } from "@/feature/quote/component/ListTagsComponent";
88
import { sanitizeHTML } from "@/helper/sanitize-html";
9-
import useBackground from "@/hooks/use-background.hook";
9+
import useBackground from "@/feature/quote/hook/use-background.hook";
1010
import { htmlToPlainText } from "@/helper/html-to-text";
1111
import { useShowCardInfo } from "@/store/use-card-info.store";
1212
import type { Quote, QuoteDetails } from "@/model/index.model";

‎frontend/src/feature/quote/component/ShareBackgroundComponent/ShareBackgroundComponent.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { sanitizeHTML } from "@/helper/sanitize-html";
1818
import { Separator } from "@/components/ui/separator";
1919
import { htmlToPlainText } from "@/helper/html-to-text";
2020
import type { QuoteFormData, Status } from "@/model/index.model";
21-
import useBackground, { type Pri_set, type TextureKey } from "@/hooks/use-background.hook";
21+
import useBackground, { type Pri_set, type TextureKey } from "@/feature/quote/hook/use-background.hook";
2222
import { ArrowLeftIcon, CircleArrowDown, CircleCheckBig, Copy, Images, LoaderCircle, Save, Share } from "lucide-react";
2323
import { exportAsImage } from "@/helper/html-to-image";
2424
import { ShareButton } from "@/feature/quote/component/ShareBackgroundComponent/component/share-button";
File renamed without changes.

frontend/src/hooks/use-get-keyboard-height.hook.ts renamed to frontend/src/feature/quote/hook/use-get-keyboard-height.hook.ts

File renamed without changes.

‎frontend/src/model/index.model.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { TextureKey, Pri_set } from "@/hooks/use-background.hook";
1+
import type { TextureKey, Pri_set } from "@/feature/quote/hook/use-background.hook";
22

33
// DB DATA MODELS
44

0 commit comments

Comments
 (0)