Skip to content

Commit

Permalink
fix: fix card header (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
csosamorales authored May 10, 2023
1 parent 349cf57 commit 346d4ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
8 changes: 0 additions & 8 deletions ui/src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ export abstract class Card {
);

static readonly Header = CardStyles.Header;
({ children, ...props }, ref) => {
return (
<CardStyles.Header ref={ref} {...props}>
{children}
</CardStyles.Header>
);
}
);

static readonly Body = forwardRef<HTMLDivElement, Card.BodyProps>(
({ children, ...props }, ref) => {
Expand Down
3 changes: 1 addition & 2 deletions ui/src/utils/color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ export const parseColorToNumber = (color: string): number => {
* Converts string number to hex color string.
*/
export const parseNumberToHexColor = (color: number): string => {
const hexColor = color.toString(16);
return hexColor;
return `${`000000${color.toString(16)}`.slice(-6)}`;
};

0 comments on commit 346d4ef

Please sign in to comment.