Skip to content

Commit

Permalink
fix(RV-390): Fix annotation template disable (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
knguyenrise8 authored Nov 26, 2024
1 parent 10bfa80 commit 9908199
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const UploadHeader = ({ title, isUpload, onBack, onSubmit }: UploadHeader
</div>
<div className="display-flex flex-jusitfy-start height-full flex-align-center">
<Button className="reset-button" onClick={onBack} type="reset" outline>Back</Button>
{!isUpload && <Button className="submit-button" onClick={onSubmit} type="submit" base>Submit</Button>}
<Button disabled={isUpload} onClick={onSubmit} type="submit" base>Submit</Button>
</div>
</div>
</Header>
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/pages/__snapshots__/UploadTemplate.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ exports[`UploadTemplate component > matches the snapshot 1`] = `
>
Back
</button>
<button
class="usa-button usa-button--base"
data-testid="button"
disabled=""
type="submit"
>
Submit
</button>
</div>
</div>
</header>
Expand Down

0 comments on commit 9908199

Please sign in to comment.