remove fontawesome package

This commit is contained in:
Yee Jia Wei
2023-12-18 06:28:42 +08:00
parent e1f036adb2
commit e9acb548bf
16 changed files with 19 additions and 612 deletions
-6
View File
@@ -1,9 +1,5 @@
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { IconProp } from "@fortawesome/fontawesome-svg-core";
type Props = {
onClick?: Function;
icon?: IconProp;
label: string;
loading: boolean;
className?: string;
@@ -12,7 +8,6 @@ type Props = {
export default function SubmitButton({
onClick,
icon,
label,
loading,
className,
@@ -28,7 +23,6 @@ export default function SubmitButton({
if (!loading && onClick) onClick();
}}
>
{icon && <FontAwesomeIcon icon={icon} className="h-5" />}
<p>{label}</p>
</button>
);