sendou.ink/app/components/form/AddFieldButton.tsx
Kalle 198010e3e7
Some checks are pending
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run
New date picker + VoD form rework (#2055)
* Initial

* Progress

* Form fields fun

* Pov

* Progress

* Some errors

* Progress

* Progress

* Progress

* Progress

* Comment

* Progress

* Remove comment

* Fix editing

* Redundant check
2025-01-26 12:56:19 +02:00

26 lines
483 B
TypeScript

import { useTranslation } from "react-i18next";
import { Button } from "../Button";
import { PlusIcon } from "../icons/Plus";
export function AddFieldButton({
onClick,
}: {
onClick: () => void;
}) {
const { t } = useTranslation(["common"]);
return (
<Button
icon={<PlusIcon />}
aria-label="Add form field"
size="tiny"
variant="minimal"
onClick={onClick}
className="self-start"
testId="add-field-button"
>
{t("common:actions.add")}
</Button>
);
}