Skip to content

Commit

Permalink
fix: factory button label (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency authored Jan 7, 2025
1 parent b0b3b4e commit 12555f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/factory/forms/ConfirmationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default function ConfirmationForm({
onClick={prevStep}
className="btn btn-neutral dark:text-white text-black w-[calc(50%-12px)]"
>
Edit Token Metadata
Back: Token Metadata
</button>
<button
onClick={handleConfirm}
Expand Down
4 changes: 2 additions & 2 deletions components/factory/forms/TokenDetailsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ export default function TokenDetails({
onClick={prevStep}
className="btn btn-neutral dark:text-white text-black py-2.5 sm:py-3.5 w-[calc(50%-12px)]"
>
Previous
Back: Create Denom
</button>
<button
className="w-[calc(50%-12px)] btn px-5 py-2.5 sm:py-3.5 btn-gradient text-white disabled:text-black"
onClick={() => handleSubmit()}
disabled={!isValid}
>
Next: Group Policy
Next: Confirmation
</button>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('TokenDetailsForm Component', () => {

test('next button is enabled when form is valid', async () => {
renderWithChainProvider(<TokenDetailsForm {...mockProps} />);
const nextButton = screen.getByText('Next: Group Policy');
const nextButton = screen.getByText('Next: Confirmation');
await waitFor(() => {
expect(nextButton).toBeEnabled();
});
Expand Down

0 comments on commit 12555f6

Please sign in to comment.