Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldickens committed Jul 22, 2024
1 parent f8a27ba commit a04e152
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ import clsx from "clsx";
import { FC } from "react";

type UnitTypeProps = {
unitType: string;
unitType: string;
};

export const UnitType: FC<UnitTypeProps> = ({ unitType }) => {
return (
<div
className={clsx(
// Copilot auto-completed these classes but it looks pretty good
"text-xs font-medium text-gray-500",
"rounded-full px-2 py-0.5",
/* "bg-gray-100" */ // IMO looks better without background
)}
>
:: {unitType}
</div>
);
}
return (
<div
className={clsx(
// Copilot auto-completed these classes but it looks pretty good
"text-xs font-medium text-gray-500",
"rounded-full px-2 py-0.5"
/* "bg-gray-100" */ // IMO looks better without background
)}
>
:: {unitType}
</div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const ValueWithContextViewer: FC<Props> = ({
}}
/>

{unitType && (<UnitType {...{unitType}} />)}
{unitType && <UnitType {...{ unitType }} />}

{!isOpen && (
<div className="ml-2 text-sm text-blue-800">
Expand Down

0 comments on commit a04e152

Please sign in to comment.