Skip to content

Commit

Permalink
refactor : do import using path alias in apps/plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oggnimodd committed Oct 4, 2023
1 parent 4fe7de3 commit 739f6d1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/plugin/iframe/PromptBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useSnippets from "./hooks/useSnippets";
import { Input, Select, SelectItem } from "@nextui-org/react";
import { Button, Combobox } from "@acme/ui";
import React, { useEffect, useState } from "react";
import { Param } from "../snippet/model";
import { Param } from "snippet/model";

type HandleParameterChange = (key: string, value: string) => void;

Expand Down
4 changes: 2 additions & 2 deletions apps/plugin/iframe/hooks/useSnippets.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { getLocalStorageValue } from "../../utils/storage";
import type { Snippet } from "../../snippet/model";
import { getLocalStorageValue } from "utils/storage";
import type { Snippet } from "snippet/model";

const useSnippets = () => {
const [snippets, setSnippets] = useState<Snippet[]>([]);
Expand Down
2 changes: 1 addition & 1 deletion apps/plugin/options/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Routes from "./routes";
import { getLocalStorageValue } from "../utils/storage";
import { getLocalStorageValue } from "utils/storage";

(async () => {
const results = await getLocalStorageValue("snippets");
Expand Down
4 changes: 2 additions & 2 deletions apps/plugin/options/hooks/useSnippets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from "react";
import { getLocalStorageValue } from "../../utils/storage";
import { Snippet } from "../../snippet/model";
import { getLocalStorageValue } from "utils/storage";
import { Snippet } from "snippet/model";

const useSnippets = () => {
const [isLoading, setIsLoading] = useState(true);
Expand Down

0 comments on commit 739f6d1

Please sign in to comment.