theme.contrast, - bg: color ?? ((theme: Theme) => theme.accent), - }, + [ + { + pY: ts(1 * sizeMult), + pX: ts(1.5 * sizeMult), + borderRadius: ts(3), + fontSize: rem(0.8), + }, + !outline && { + color: (theme: Theme) => theme.contrast, + bg: color ?? ((theme: Theme) => theme.accent), + }, + outline && { + borderColor: color ?? ((theme: Theme) => theme.accent), + borderStyle: "solid", + borderWidth: px(1), + }, + ], props, )} - > - {label} -
+ /> ); }; diff --git a/front/packages/primitives/src/links.tsx b/front/packages/primitives/src/links.tsx index b7fcac8f..d97f5925 100644 --- a/front/packages/primitives/src/links.tsx +++ b/front/packages/primitives/src/links.tsx @@ -86,7 +86,7 @@ export const Link = ({ target, children, ...props -}: { href?: string; target?: string; replace?: boolean } & PressableProps) => { +}: { href?: string | null; target?: string; replace?: boolean } & PressableProps) => { const linkProps = useLink({ href: href ?? "#", replace, diff --git a/front/packages/ui/src/details/header.tsx b/front/packages/ui/src/details/header.tsx index 6539461a..cf4a2fa3 100644 --- a/front/packages/ui/src/details/header.tsx +++ b/front/packages/ui/src/details/header.tsx @@ -332,7 +332,14 @@ const Description = ({{overview ?? t("show.noOverview")}
)} -{t("show.tags")}:
{(isLoading ? [...Array{t("show.links")}:
+ {(!isLoading + ? Object.entries(data.externalId!).filter(([_, data]) => data.link) + : [...Array(3)].map((_, i) => [i, undefined] as const) + ).map(([name, data]) => ( +