fix: fix card header (#257)

This commit is contained in:
Camila Sosa Morales 2023-05-10 19:22:48 -03:00 committed by GitHub
parent 349cf57976
commit 346d4efc34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -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) => {

View File

@ -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)}`;
};