Compare commits

...

2 Commits

Author SHA1 Message Date
sriramveeraghanta
8df67c339b fix: appdir setup 2023-11-08 22:45:27 +05:30
sriramveeraghanta
1ea52d47a0 fix: appdir setup 2023-11-08 22:44:57 +05:30
363 changed files with 580 additions and 347 deletions

View File

@ -2,7 +2,7 @@
// @ts-nocheck
import { NodeViewWrapper } from "@tiptap/react";
import { cn } from "../../lib/utils";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { IMentionHighlight } from "../../types/mention-suggestion";
// eslint-disable-next-line import/no-anonymous-default-export

View File

@ -15,7 +15,10 @@
"module": "esnext",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
"jsx": "react",
"paths": {
"react": [ "./node_modules/@types/react" ]
}
},
"include": ["src", "next-env.d.ts"],
"exclude": ["node_modules"]

View File

@ -4,9 +4,13 @@
"extends": "./base.json",
"compilerOptions": {
"jsx": "react-jsx",
"strict": true,
"lib": ["ES2015", "DOM"],
"module": "ESNext",
"target": "es6",
"sourceMap": true
"sourceMap": true,
"paths": {
"react": [ "./node_modules/@types/react" ]
}
}
}

View File

@ -30,9 +30,6 @@
"tsup": "^5.10.1",
"typescript": "4.7.4"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@blueprintjs/core": "^4.16.3",
"@blueprintjs/popover2": "^1.13.3",

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import Link from "next/link";
import { useForm } from "react-hook-form";
// components

View File

@ -1,7 +1,7 @@
import { useEffect, useState, FC } from "react";
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// next-themes
import { useTheme } from "next-themes";
// images

View File

@ -1,5 +1,5 @@
import { useEffect, Fragment } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Controller, useForm } from "react-hook-form";
import { Listbox, Transition } from "@headlessui/react";

View File

@ -1,6 +1,6 @@
import React from "react";
import useSWR from "swr";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -11,7 +11,7 @@ import { IssueBlockDueDate } from "components/issues/board-views/block-due-date"
// interfaces
import { IIssue } from "types/issue";
import { RootStore } from "store/root";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
export const IssueListBlock = observer(({ issue }: { issue: IIssue }) => {
const { project: projectStore, issueDetails: issueDetailStore }: RootStore = useMobxStore();

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// components
import { IssueBlockPriority } from "components/issues/board-views/block-priority";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// components

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// components

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// mobx hook

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx react lite
import { observer } from "mobx-react-lite";
// components

View File

@ -2,7 +2,7 @@ import { useEffect } from "react";
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// constants
import { issueViews } from "constants/data";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { ChevronDown } from "lucide-react";
// mobx store

View File

@ -1,5 +1,5 @@
import React, { useRef } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { useForm, Controller } from "react-hook-form";
// lib

View File

@ -1,6 +1,6 @@
import React from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -1,7 +1,7 @@
import React from "react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -1,5 +1,5 @@
import { useEffect } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// lib
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,6 +1,6 @@
import { useState, useEffect } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -1,7 +1,7 @@
import { useEffect } from "react";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -2,7 +2,7 @@
import { useEffect } from "react";
// next imports
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// js cookie
import Cookie from "js-cookie";
// mobx store

View File

@ -1,5 +1,5 @@
import Head from "next/head";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";

View File

@ -2,7 +2,7 @@ import { useEffect } from "react";
// next
import { NextPage } from "next";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
const Index: NextPage = () => {
const router = useRouter();

56
web/app/layout.tsx Normal file
View File

@ -0,0 +1,56 @@
"use client"
import { ReactElement } from "react";
import Head from "next/head";
import dynamic from "next/dynamic";
import Router from "next/navigation";
import { AppProps } from "next/app";
import { ThemeProvider } from "next-themes";
import NProgress from "nprogress";
// styles
import "styles/globals.css";
import "styles/editor.css";
import "styles/table.css";
import "styles/command-pallette.css";
import "styles/nprogress.css";
import "styles/react-datepicker.css";
// contexts
import { ToastContextProvider } from "contexts/toast.context";
// constants
import { THEMES } from "constants/themes";
import { SITE_TITLE } from "constants/seo-variables";
// mobx store provider
import { MobxStoreProvider } from "lib/mobx/store-provider";
import MobxStoreInit from "lib/mobx/store-init";
// types
import { NextPageWithLayout } from "types/app";
const CrispWithNoSSR = dynamic(() => import("constants/crisp"), { ssr: false });
// // nprogress
// NProgress.configure({ showSpinner: false });
// Router.events.on("routeChangeStart", NProgress.start);
// Router.events.on("routeChangeError", NProgress.done);
// Router.events.on("routeChangeComplete", NProgress.done);
export default function AppLayout({ children }:any) {
// Use the layout defined at the page level, if available
// const getLayout = Component.getLayout ?? ((page: ReactElement) => page);
return (
<>
<Head>
<title>{SITE_TITLE}</title>
</Head>
<MobxStoreProvider>
<ThemeProvider themes={THEMES} defaultTheme="system">
<ToastContextProvider>
<CrispWithNoSSR />
<MobxStoreInit />
{children}
</ToastContextProvider>
</ThemeProvider>
</MobxStoreProvider>
</>
);
}

16
web/app/page.tsx Normal file
View File

@ -0,0 +1,16 @@
"use client"
import { ReactElement } from "react";
// layouts
import DefaultLayout from "layouts/default-layout";
// components
import { SignInView } from "components/page-views";
// type
import { NextPageWithLayout } from "types/app";
const HomePage: NextPageWithLayout = () => <SignInView />;
// HomePage.getLayout = function getLayout(page: ReactElement) {
// return <DefaultLayout>{page}</DefaultLayout>;
// };
export default HomePage;

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { useForm, Controller } from "react-hook-form";
// ui
import { Input, Button } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import React from "react";
import { useForm, Controller } from "react-hook-form";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { Input, Button } from "@plane/ui";

View File

@ -1,7 +1,7 @@
import { useEffect, useState, FC } from "react";
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { useTheme } from "next-themes";
// images
import githubBlackImage from "/public/logos/github-black.png";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";
import { useForm } from "react-hook-form";
import { observer } from "mobx-react-lite";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { mutate } from "swr";
// components

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Control, Controller, UseFormSetValue } from "react-hook-form";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { CustomSelect } from "@plane/ui";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { CustomSelect } from "@plane/ui";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// mobx store

View File

@ -1,5 +1,5 @@
import { useEffect } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { mutate } from "swr";
// services

View File

@ -1,5 +1,5 @@
import React from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Tab } from "@headlessui/react";
// mobx store

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";

View File

@ -2,7 +2,7 @@ import React from "react";
// next
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// layouts
import DefaultLayout from "layouts/default-layout";
// hooks

View File

@ -1,6 +1,6 @@
import { useState } from "react";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";
// ui

View File

@ -1,6 +1,6 @@
import React, { useState } from "react";
import useSWR from "swr";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// component
import { SelectMonthModal } from "components/automation";
import { CustomSelect, CustomSearchSelect, ToggleSwitch, StateGroupIcon, DoubleCircleIcon } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import React from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// react-hook-form
import { Controller, useForm } from "react-hook-form";
// headless ui

View File

@ -1,5 +1,5 @@
import * as React from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import Link from "next/link";
// icons
import { MoveLeft } from "lucide-react";

View File

@ -1,5 +1,5 @@
import React, { useCallback, useEffect, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR, { mutate } from "swr";
import { Command } from "cmdk";
import { Dialog, Transition } from "@headlessui/react";

View File

@ -1,5 +1,5 @@
import React, { useCallback, useEffect, FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";
import { observer } from "mobx-react-lite";
// hooks

View File

@ -1,5 +1,5 @@
import { Dispatch, SetStateAction, useCallback, FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { mutate } from "swr";
import { Command } from "cmdk";

View File

@ -1,6 +1,6 @@
import React, { Dispatch, SetStateAction, useCallback } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { mutate } from "swr";

View File

@ -1,6 +1,6 @@
import React, { Dispatch, SetStateAction, useCallback } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR, { mutate } from "swr";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";

View File

@ -1,6 +1,6 @@
import React, { useEffect, useState, useRef, useCallback } from "react";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import useSWR from "swr";
import { useDropzone } from "react-dropzone";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";
// react hook form
import { SubmitHandler, useForm } from "react-hook-form";

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { Combobox, Dialog, Transition } from "@headlessui/react";
import { Rocket, Search, X } from "lucide-react";
// services

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState, useRef } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// react-hook-form
import { Controller, useForm } from "react-hook-form";
// services

View File

@ -1,5 +1,5 @@
import React, { useCallback, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { useDropzone } from "react-dropzone";
import { Transition, Dialog } from "@headlessui/react";

View File

@ -1,6 +1,6 @@
import { MouseEvent } from "react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";
// hooks
import useToast from "hooks/use-toast";

View File

@ -1,6 +1,6 @@
import React, { useEffect } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// mobx
import { observer } from "mobx-react-lite";

View File

@ -1,5 +1,5 @@
import { FC, MouseEvent, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import Link from "next/link";
// hooks
import useToast from "hooks/use-toast";

View File

@ -1,6 +1,6 @@
import { FC, MouseEvent, useState } from "react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// stores
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { Tooltip, ContrastIcon } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { KeyedMutator } from "swr";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";
import { Listbox, Transition } from "@headlessui/react";
// icons

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { mutate } from "swr";
import { useForm } from "react-hook-form";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";
import { Dialog, Transition } from "@headlessui/react";
// services

View File

@ -1,6 +1,6 @@
import React from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR from "swr";

View File

@ -1,5 +1,5 @@
import React, { useEffect } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { Controller, useForm } from "react-hook-form";
import { Dialog, Transition } from "@headlessui/react";

View File

@ -1,5 +1,5 @@
import React, { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { Dialog, Transition } from "@headlessui/react";
// store
import { observer } from "mobx-react-lite";

View File

@ -1,6 +1,6 @@
import React from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// store
import { observer } from "mobx-react-lite";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// store
import { observer } from "mobx-react-lite";
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import React, { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Dialog, Transition } from "@headlessui/react";
// mobx store

View File

@ -2,7 +2,7 @@ import { useState } from "react";
import Link from "next/link";
import Image from "next/image";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import useSWR, { mutate } from "swr";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd";
import StrictModeDroppable from "components/dnd/StrictModeDroppable";
import { MoreVertical } from "lucide-react";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd";
import StrictModeDroppable from "components/dnd/StrictModeDroppable";
import { MoreVertical } from "lucide-react";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { DragDropContext, Draggable, DropResult } from "@hello-pangea/dnd";
import StrictModeDroppable from "components/dnd/StrictModeDroppable";
import { MoreVertical } from "lucide-react";

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { Plus } from "lucide-react";
// ui
import { Breadcrumbs, Button, ContrastIcon } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import { useCallback, useState } from "react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import useSWR from "swr";

View File

@ -1,5 +1,5 @@
import { useCallback, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Plus } from "lucide-react";
// mobx store

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { FileText, Plus } from "lucide-react";
// services

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { FileText, Plus } from "lucide-react";
// hooks

View File

@ -1,6 +1,6 @@
import { FC } from "react";
import useSWR from "swr";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// hooks
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// hooks
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// hooks
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { FC, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Plus } from "lucide-react";
// hooks

View File

@ -1,6 +1,6 @@
import { FC } from "react";
import useSWR from "swr";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// ui

View File

@ -1,6 +1,6 @@
import { useCallback, useState } from "react";
import Link from "next/link";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { ArrowLeft, Circle, ExternalLink, Plus } from "lucide-react";
// mobx store

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { Breadcrumbs } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import { useCallback } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
// mobx store
import { useMobxStore } from "lib/mobx/store-provider";

View File

@ -1,5 +1,5 @@
import { useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import { Plus } from "lucide-react";
// mobx store

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { Search, Plus, Briefcase } from "lucide-react";
// ui
import { Breadcrumbs, Button } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { Breadcrumbs } from "@plane/ui";

View File

@ -1,4 +1,4 @@
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { ArrowLeft, BarChart2 } from "lucide-react";
// ui
import { Breadcrumbs } from "@plane/ui";

View File

@ -1,6 +1,6 @@
import { FC } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
// ui
import { Breadcrumbs } from "@plane/ui";

View File

@ -1,5 +1,5 @@
import { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { useRouter } from "next/navigation";
import { observer } from "mobx-react-lite";
import DatePicker from "react-datepicker";
import { Popover } from "@headlessui/react";

Some files were not shown because too many files have changed in this diff Show More