chore: app dir improvement (#4750)
* chore: remove constants package. * fix: useRouter import in editor. * chore: improve `peekCycle` and `peekModule` logic. * style: update app progress bar color.
This commit is contained in:
parent
a88f2e3cba
commit
7ac07b7b73
14 changed files with 10 additions and 394 deletions
|
|
@ -5,7 +5,6 @@ import { observer } from "mobx-react";
|
|||
import { useRouter } from "next/navigation";
|
||||
import useSWR from "swr";
|
||||
// types
|
||||
import { EPageTypes } from "@plane/constants";
|
||||
import { TOnboardingSteps, TUserProfile } from "@plane/types";
|
||||
// components
|
||||
import { LogoSpinner } from "@/components/common";
|
||||
|
|
@ -13,6 +12,8 @@ import { InviteMembers, CreateOrJoinWorkspaces, ProfileSetup } from "@/component
|
|||
// constants
|
||||
import { USER_ONBOARDING_COMPLETED } from "@/constants/event-tracker";
|
||||
import { USER_WORKSPACES_LIST } from "@/constants/fetch-keys";
|
||||
// helpers
|
||||
import { EPageTypes } from "@/helpers/authentication.helper";
|
||||
// hooks
|
||||
import { useUser, useWorkspace, useUserProfile, useEventTracker } from "@/hooks/store";
|
||||
// wrappers
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export const AppProvider: FC<IAppProvider> = (props) => {
|
|||
const { resolvedTheme } = useTheme();
|
||||
return (
|
||||
<>
|
||||
<AppProgressBar height="4px" color="#fffd00" options={{ showSpinner: false }} shallowRouting />
|
||||
<AppProgressBar height="4px" color="#3F76FF" options={{ showSpinner: false }} shallowRouting />
|
||||
<Toast theme={resolveGeneralTheme(resolvedTheme)} />
|
||||
<StoreProvider>
|
||||
<ThemeProvider themes={["light", "dark", "light-contrast", "dark-contrast", "custom"]} defaultTheme="system">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue