mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-30 03:07:01 -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
22 lines
477 B
TypeScript
22 lines
477 B
TypeScript
import type * as React from "react";
|
|
import { RemoveFieldButton } from "./RemoveFieldButton";
|
|
|
|
export function FormFieldset({
|
|
title,
|
|
children,
|
|
onRemove,
|
|
}: { title: string; children: React.ReactNode; onRemove: () => void }) {
|
|
return (
|
|
<fieldset className="w-min">
|
|
<legend>{title}</legend>
|
|
<div className="stack sm">
|
|
{children}
|
|
|
|
<div className="mt-4 stack items-center">
|
|
<RemoveFieldButton onClick={onRemove} />
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
);
|
|
}
|