diff options
author | crupest <crupest@outlook.com> | 2023-07-11 21:45:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-11 21:45:37 +0800 |
commit | 34125b7c7a57b749cf8cbaf6bab8d3b186a52559 (patch) | |
tree | e5782d2988ca5b45b4973d1c1da8d296f5eb47ce /FrontEnd/src/views/common/button/IconButton.tsx | |
parent | 78f0934815a87573289c8e52af2666ea38c93251 (diff) | |
download | timeline-34125b7c7a57b749cf8cbaf6bab8d3b186a52559.tar.gz timeline-34125b7c7a57b749cf8cbaf6bab8d3b186a52559.tar.bz2 timeline-34125b7c7a57b749cf8cbaf6bab8d3b186a52559.zip |
...
Diffstat (limited to 'FrontEnd/src/views/common/button/IconButton.tsx')
-rw-r--r-- | FrontEnd/src/views/common/button/IconButton.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FrontEnd/src/views/common/button/IconButton.tsx b/FrontEnd/src/views/common/button/IconButton.tsx index 3ba56277..ca12bf5a 100644 --- a/FrontEnd/src/views/common/button/IconButton.tsx +++ b/FrontEnd/src/views/common/button/IconButton.tsx @@ -1,17 +1,17 @@ -import * as React from "react"; +import { ComponentPropsWithoutRef } from "react"; import classNames from "classnames"; import { PaletteColorType } from "@/palette"; import "./IconButton.css"; -export interface IconButtonProps extends React.ComponentPropsWithRef<"i"> { +interface IconButtonProps extends ComponentPropsWithoutRef<"i"> { icon: string; color?: PaletteColorType; large?: boolean; } -export default function IconButton(props: IconButtonProps): JSX.Element { +export default function IconButton(props: IconButtonProps) { const { icon, color, className, large, ...otherProps } = props; return ( |