Always display HTTP params under the endpoint link

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-08-06 16:39:25 +02:00
parent b37fe21f63
commit e07dd8cd05

View file

@ -1,4 +1,4 @@
import { Anchor, Badge, Group } from "@mantine/core";
import { Anchor, Badge, Group, Stack } from "@mantine/core";
import { FC } from "react";
export interface EndpointLinkProps {
@ -30,7 +30,7 @@ const EndpointLink: FC<EndpointLinkProps> = ({ endpoint, globalUrl }) => {
? endpoint.replace(search, "")
: `${protocol}//${host}${pathname}`;
return (
<>
<Stack gap={0}>
<Anchor size="sm" href={globalUrl}>
{displayLink}
</Anchor>
@ -51,7 +51,7 @@ const EndpointLink: FC<EndpointLinkProps> = ({ endpoint, globalUrl }) => {
})}
</Group>
)}
</>
</Stack>
);
};