mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 15:08:44 -05:00
* Initial * Calendar initial * Extract EventCalendar * Events list initial * Winners * SQL fixes * List events by series * Leaderboards * Series leaderboard * Own entry peek * Edit page skeleton * RHF initial test * RHF stuff * Form etc. progress * Fix tournament series description * Fix tabs layout * Fix socials insert * Check for not removing admin * Adding series * TODOs * Allow updating org with no series * FormFieldset * Allow series without events * TextAreaFormfield accepting array syntax * Input form array field * ToggleFormField * SelectFormField * UserSearchFormField * Fetch badgeOptions * Badge editing * Progress * Use native preventScrollReset * Rename func * Fix sticky scroll * Fix translation * i18n errors * handle,meta in edit * Add ref to user search * TODOs * Done
25 lines
454 B
TypeScript
25 lines
454 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"
|
|
>
|
|
{t("common:actions.add")}
|
|
</Button>
|
|
);
|
|
}
|