Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Oct 9, 2024
1 parent 7ec3b07 commit c8d61a9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EndpointContext } from "@fern-api/fdr-sdk/api-definition";
import type * as FernNavigation from "@fern-api/fdr-sdk/navigation";
import { memo, type ReactNode } from "react";
import { FernBreadcrumbs } from "../../components/FernBreadcrumbs";
import { useSelectedEnvironment } from "../../playground/utils/select-environment";
import { usePlaygroundBaseUrl } from "../../playground/utils/select-environment";
import { EndpointAvailabilityTag } from "./EndpointAvailabilityTag";
import { EndpointUrlWithOverflow } from "./EndpointUrlWithOverflow";

Expand All @@ -14,7 +14,7 @@ interface EndpointContentHeaderProps {

export const EndpointContentHeader = memo<EndpointContentHeaderProps>(({ context, breadcrumb, streamToggle }) => {
const { endpoint, node } = context;
const selectedEnvironment = useSelectedEnvironment(endpoint);
const [baseUrl, environmentId] = usePlaygroundBaseUrl(endpoint);
return (
<header className="space-y-1 pb-2 pt-8">
<FernBreadcrumbs breadcrumb={breadcrumb} />
Expand All @@ -31,9 +31,10 @@ export const EndpointContentHeader = memo<EndpointContentHeaderProps>(({ context
{streamToggle}
</div>
<EndpointUrlWithOverflow
baseUrl={baseUrl}
environmentId={environmentId}
path={endpoint.path}
method={endpoint.method}
selectedEnvironment={selectedEnvironment}
showEnvironment
large
/>
Expand Down

0 comments on commit c8d61a9

Please sign in to comment.