fix: fix card header (#257)
This commit is contained in:
parent
349cf57976
commit
346d4efc34
|
|
@ -15,14 +15,6 @@ export abstract class Card {
|
||||||
);
|
);
|
||||||
|
|
||||||
static readonly Header = CardStyles.Header;
|
static readonly Header = CardStyles.Header;
|
||||||
({ children, ...props }, ref) => {
|
|
||||||
return (
|
|
||||||
<CardStyles.Header ref={ref} {...props}>
|
|
||||||
{children}
|
|
||||||
</CardStyles.Header>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
static readonly Body = forwardRef<HTMLDivElement, Card.BodyProps>(
|
static readonly Body = forwardRef<HTMLDivElement, Card.BodyProps>(
|
||||||
({ children, ...props }, ref) => {
|
({ children, ...props }, ref) => {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,5 @@ export const parseColorToNumber = (color: string): number => {
|
||||||
* Converts string number to hex color string.
|
* Converts string number to hex color string.
|
||||||
*/
|
*/
|
||||||
export const parseNumberToHexColor = (color: number): string => {
|
export const parseNumberToHexColor = (color: number): string => {
|
||||||
const hexColor = color.toString(16);
|
return `${`000000${color.toString(16)}`.slice(-6)}`;
|
||||||
return hexColor;
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue