mirror of
https://github.com/Dvorinka/Dash.git
synced 2026-10-28 07:41:27 +00:00
Merge pull request #9 from Dvorinka/fix/domain-intel-types
fix: exactOptionalPropertyTypes on provider badge props
This commit is contained in:
1 file changed
+2
-2
@@ -33,7 +33,7 @@ function fmtDate(iso: string | null | undefined) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Vendor chip shown next to records and inside the provider strip.
|
// Vendor chip shown next to records and inside the provider strip.
|
||||||
function ProviderBadge({ p }: { p?: Provider | null }) {
|
function ProviderBadge({ p }: { p: Provider | null | undefined }) {
|
||||||
if (!p?.name) return null;
|
if (!p?.name) return null;
|
||||||
return (
|
return (
|
||||||
<span className="inline-flex shrink-0 items-center gap-1.5 rounded-full border border-border/60 bg-bg px-2 py-0.5">
|
<span className="inline-flex shrink-0 items-center gap-1.5 rounded-full border border-border/60 bg-bg px-2 py-0.5">
|
||||||
@@ -45,7 +45,7 @@ function ProviderBadge({ p }: { p?: Provider | null }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ProvTile({ label, p }: { label: string; p?: Provider }) {
|
function ProvTile({ label, p }: { label: string; p: Provider | undefined }) {
|
||||||
return (
|
return (
|
||||||
<div className="flex min-w-0 items-center gap-2.5 rounded-[9px] border border-border/60 bg-bg px-3 py-2.5">
|
<div className="flex min-w-0 items-center gap-2.5 rounded-[9px] border border-border/60 bg-bg px-3 py-2.5">
|
||||||
{p?.icon
|
{p?.icon
|
||||||
|
|||||||
Reference in new issue
Block a user