Skip to content

Commit

Permalink
fix: remove isDev handling (#39)
Browse files Browse the repository at this point in the history
* fix: remove isDev handling

* fix broken import
  • Loading branch information
rubber-duck-software authored Aug 4, 2023
1 parent 024da97 commit 7e65835
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
4 changes: 1 addition & 3 deletions src/RemixDevTools/RemixDevTools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { RDTContextProvider } from "./context/RDTContext";
import { Tab } from "./tabs";
import { useTimelineHandler } from "./hooks/useTimelineHandler";
import { useRDTContext } from "./context/useRDTContext";
import { isDev } from "./utils/isDev";
import { useLocation } from "@remix-run/react";
import { Trigger } from "./components/Trigger";
import { MainPanel } from "./layout/MainPanel";
Expand Down Expand Up @@ -94,10 +93,9 @@ const RDTWithContext = ({
maxHeight = 600,
}: RemixDevToolsProps) => {
const hydrated = useHydrated();
const isDevelopment = isDev();
const url = useLocation().search;

if (!hydrated || !isDevelopment) return null;
if (!hydrated) return null;
if (requireUrlFlag && !url.includes("rdt=true")) return null;

return (
Expand Down
12 changes: 0 additions & 12 deletions src/RemixDevTools/utils/isDev.test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/RemixDevTools/utils/isDev.ts

This file was deleted.

0 comments on commit 7e65835

Please sign in to comment.