diff options
| author | Haishan <[email protected]> | 2022-06-06 23:39:56 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2022-06-06 23:39:56 +0800 |
| commit | 78f3434cb52f53c66936de278f0828c19ef63666 (patch) | |
| tree | e7f9685cc0f3d8eaa6a94ad330e8876752ecb276 /src/components/shared/RotateIcon.tsx | |
| parent | 23e734aa548354bb7ceff5ad8d85de95cd860a55 (diff) | |
Run prettier
Diffstat (limited to 'src/components/shared/RotateIcon.tsx')
| -rw-r--r-- | src/components/shared/RotateIcon.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/shared/RotateIcon.tsx b/src/components/shared/RotateIcon.tsx index d9dcbd9..d291ece 100644 --- a/src/components/shared/RotateIcon.tsx +++ b/src/components/shared/RotateIcon.tsx @@ -4,13 +4,12 @@ import { RotateCw } from 'react-feather'; import s from './RotateIcon.module.scss'; -export function RotateIcon({ isRotating }: { isRotating: boolean }) { - const cls = cx(s.rotate, { - [s.isRotating]: isRotating, - }); +export function RotateIcon(props: { isRotating: boolean; size?: number }) { + const size = props.size || 16; + const cls = cx(s.rotate, { [s.isRotating]: props.isRotating }); return ( <span className={cls}> - <RotateCw size={16} /> + <RotateCw size={size} /> </span> ); } |
