sdk fixes

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-26 22:15:10 +01:00
parent 117a8797a1
commit 09037969d8
12 changed files with 33 additions and 55 deletions

View File

@@ -12,9 +12,6 @@ interface KeyValueProps {
export function KeyValue({ href, onClick, name, value }: KeyValueProps) {
const clickable = href || onClick;
const Component = href ? (Link as any) : onClick ? 'button' : 'div';
if (!isValidElement(value)) {
return null;
}
return (
<Component
@@ -40,10 +37,6 @@ export function KeyValue({ href, onClick, name, value }: KeyValueProps) {
export function KeyValueSubtle({ href, onClick, name, value }: KeyValueProps) {
const clickable = href || onClick;
const Component = href ? (Link as any) : onClick ? 'button' : 'div';
if (!isValidElement(value)) {
return null;
}
return (
<Component
className="group flex text-[10px] sm:text-xs gap-2 font-medium self-start min-w-0 max-w-full items-center"