mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-07-31 08:06:51 -05:00
SubmitButton for ADD_PLAYER
This commit is contained in:
parent
0b8042f229
commit
c06de36cb2
|
|
@ -288,14 +288,15 @@ export default function ManageRosterPage() {
|
|||
))}
|
||||
</select>
|
||||
<FormErrorMessage errorMsg={actionData?.error?.userId} />
|
||||
<Button
|
||||
<SubmitButton
|
||||
className="tournament__manage-roster__input__button"
|
||||
type="submit"
|
||||
loading={isSubmitting}
|
||||
actionType="ADD_PLAYER"
|
||||
loadingText="Adding..."
|
||||
successText="Added!"
|
||||
data-cy="add-to-roster-button"
|
||||
>
|
||||
Add to roster
|
||||
</Button>
|
||||
</SubmitButton>
|
||||
</Form>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user