Skip to content

Commit a30bf51

Browse files
committed
optimize: optimize cardheader code
1 parent 9cc7a92 commit a30bf51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/ui/src/components/card/source/CardHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { cardVariants, cn } from '@skyroc-ui/variants';
2-
import React, { useMemo } from 'react';
2+
import { forwardRef } from 'react';
33

44
import type { CardHeaderProps } from '../type';
55

6-
export const CardHeader = React.forwardRef<HTMLDivElement, CardHeaderProps>((props, ref) => {
6+
export const CardHeader = forwardRef<HTMLDivElement, CardHeaderProps>((props, ref) => {
77
const { className, size, ...rest } = props;
88

99
const { header } = cardVariants({ size });

0 commit comments

Comments
 (0)