remove icon from accent submit button
as it is not used currently
This commit is contained in:
parent
fc679d1150
commit
6632c0507b
|
@ -1,9 +1,5 @@
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
||||||
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
onClick?: Function;
|
onClick?: Function;
|
||||||
icon?: IconProp;
|
|
||||||
label: string;
|
label: string;
|
||||||
loading?: boolean;
|
loading?: boolean;
|
||||||
className?: string;
|
className?: string;
|
||||||
|
@ -12,7 +8,6 @@ type Props = {
|
||||||
|
|
||||||
export default function AccentSubmitButton({
|
export default function AccentSubmitButton({
|
||||||
onClick,
|
onClick,
|
||||||
icon,
|
|
||||||
label,
|
label,
|
||||||
loading,
|
loading,
|
||||||
className,
|
className,
|
||||||
|
@ -28,7 +23,6 @@ export default function AccentSubmitButton({
|
||||||
if (loading !== undefined && !loading && onClick) onClick();
|
if (loading !== undefined && !loading && onClick) onClick();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{icon && <FontAwesomeIcon icon={icon} className="h-5" />}
|
|
||||||
<p className="font-bold">{label}</p>
|
<p className="font-bold">{label}</p>
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|
Ŝarĝante…
Reference in New Issue