Skip to content

Commit

Permalink
fix: import path fixed (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrukh802 authored Jul 18, 2024
1 parent 6e18055 commit f404e29
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
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

0 comments on commit f404e29

Please sign in to comment.