aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/views/common/button/IconButton.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-12 15:25:15 +0800
committerGitHub <noreply@github.com>2023-07-12 15:25:15 +0800
commit4a069bf1268f393d5467166356f691eb89963152 (patch)
tree1bfa25fda4bd970a609c161b18e6616b5d5e8221 /FrontEnd/src/views/common/button/IconButton.tsx
parent78f0934815a87573289c8e52af2666ea38c93251 (diff)
parent7781eede43be5fa277305ce9bd51bfc6a2a6ff46 (diff)
downloadtimeline-4a069bf1268f393d5467166356f691eb89963152.tar.gz
timeline-4a069bf1268f393d5467166356f691eb89963152.tar.bz2
timeline-4a069bf1268f393d5467166356f691eb89963152.zip
Merge pull request #1386 from crupest/dev
Develop.
Diffstat (limited to 'FrontEnd/src/views/common/button/IconButton.tsx')
-rw-r--r--FrontEnd/src/views/common/button/IconButton.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/FrontEnd/src/views/common/button/IconButton.tsx b/FrontEnd/src/views/common/button/IconButton.tsx
index 3ba56277..652a8b09 100644
--- a/FrontEnd/src/views/common/button/IconButton.tsx
+++ b/FrontEnd/src/views/common/button/IconButton.tsx
@@ -1,21 +1,21 @@
-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 (
- <i
+ <button
className={classNames(
"cru-icon-button",
large && "large",