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