Skip to content

Commit

Permalink
chore: remove remix-routes package
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhopperlowe committed Dec 18, 2024
1 parent 813b92c commit 97141ec
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 368 deletions.
6 changes: 4 additions & 2 deletions ui/admin/app/components/composed/FirstModelProviderBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link, useLocation } from "react-router";
import { $path } from "remix-routes";
import { $path } from "safe-routes";

import { assetUrl } from "~/lib/utils";

Expand All @@ -10,7 +10,9 @@ import { useModelProviders } from "~/hooks/model-providers/useModelProviders";
export function FirstModelProviderBanner() {
const { configured: modelProviderConfigured } = useModelProviders();
const location = useLocation();
const isModelsProviderPage = location.pathname.includes("/model-providers");
const isModelsProviderPage = location.pathname.includes(
$path("/model-providers")
);

return isModelsProviderPage || modelProviderConfigured ? null : (
<div className="w-full">
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/components/knowledge/AgentKnowledgePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
UploadIcon,
} from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { $path } from "remix-routes";
import { $path } from "safe-routes";
import useSWR, { SWRResponse } from "swr";

import { Agent, KNOWLEDGE_TOOL } from "~/lib/model/agents";
Expand Down
2 changes: 1 addition & 1 deletion ui/admin/app/routes/_auth.threads.$id.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
useLoaderData,
useMatch,
} from "react-router";
import { $path } from "remix-routes";
import { $path } from "safe-routes";

import { AgentService } from "~/lib/service/api/agentService";
import { ThreadsService } from "~/lib/service/api/threadsService";
Expand Down
1 change: 0 additions & 1 deletion ui/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"react-router": "^7.0.0",
"rehype-external-links": "^3.0.0",
"remark-gfm": "^4.0.0",
"remix-routes": "^1.7.7",
"safe-routes": "^1.0.2",
"sonner": "1.4.3",
"swr": "^2.2.5",
Expand Down
Loading

0 comments on commit 97141ec

Please sign in to comment.