Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import path fixed #1285

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions client/Providers/AppProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ import { Provider as RollbarProvider, ErrorBoundary } from "@rollbar/react";
import QueryProvider from "./QueryProvider";
import Intercom from "@/components/Intercom/Intercom";
import { ToastContainer } from "react-toastify";
import dynamic from "next/dynamic";
import "styles/globals.css";
import "styles/App.css";
import "styles/multi-range-slider.css";
import "react-toastify/dist/ReactToastify.css";

const _NoSSR = ({ children }) => <React.Fragment>{children}</React.Fragment>;
const NoSSR = dynamic(() => Promise.resolve(_NoSSR), {
ssr: false,
});

export default function AppProvider({ children }: { children: ReactNode }) {
const pathname = usePathname();
const defaultTitle = getTitleFromPath(pathname);
Expand All @@ -41,10 +47,12 @@ export default function AppProvider({ children }: { children: ReactNode }) {
<>
<RollbarProvider config={rollbarConfig}>
<ErrorBoundary>
<ContextProvider>
<ToastContainer autoClose={3000} className="w-64 text-white" />
<QueryProvider>{children}</QueryProvider>
</ContextProvider>
<NoSSR>
<ContextProvider>
<ToastContainer autoClose={3000} className="w-64 text-white" />
<QueryProvider>{children}</QueryProvider>
</ContextProvider>
</NoSSR>
</ErrorBoundary>
</RollbarProvider>
<Intercom appID={NEXT_PUBLIC_INTERCOM_APP_ID} />
Expand Down
2 changes: 1 addition & 1 deletion client/components/LogsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
HeaderCell,
Cell,
} from "@table-library/react-table-library/table";
import { LogData } from "app/settings/logs/logs-interface";
import { LogData } from "@/app/(ee)/settings/logs/logs-interface";

const LogList: React.FC<{ data: LogData[] }> = ({
data,
Expand Down
Loading