Added icons and formatted with prettier

This commit is contained in:
t1enne
2022-05-22 14:27:06 +02:00
parent 0ddeb5dfb8
commit 6a0d0970d6
3 changed files with 17 additions and 17 deletions

View File

@ -8,7 +8,9 @@ interface Props {
action: ExternalAction;
}
export default function ActionButton({action: { url, title, description, icon, openExternally }}: Props) {
export default function ActionButton({
action: { url, title, description, icon, openExternally },
}: Props) {
const [showModal, setShowModal] = useState(false);
const buttonClicked = () => {
@ -21,11 +23,7 @@ export default function ActionButton({action: { url, title, description, icon, o
return (
<>
<Button
type="primary"
className={`${s.button}`}
onClick={buttonClicked}
>
<Button type="primary" className={`${s.button}`} onClick={buttonClicked}>
<img src={icon} className={`${s.icon}`} alt={description} />
{title}
</Button>