Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: factory button label #180

Merged
merged 2 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading