Skip to content

Commit

Permalink
Merge branch 'main' into fix/1628-adjustments-to-show-hide-feature-st…
Browse files Browse the repository at this point in the history
…ep-5
  • Loading branch information
ngunner15 authored Nov 15, 2024
2 parents 328bb8f + 57508b2 commit eacf949
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions frontend/src/views/Seedlot/SeedlotReview/SeedlotReviewContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -544,22 +544,15 @@ const SeedlotReviewContent = () => {
}
/>

{
// Seedlots that have 'CUS' or 'UPT' as source should not be edited.
seedlotData?.seedlotSource.seedlotSourceCode === 'TPT'
? (
<Button
kind="secondary"
size="md"
className="edit-save-btn"
renderIcon={isReadMode ? Edit : Save}
onClick={handleEditSaveBtn}
>
{isReadMode ? 'Edit seedlot' : 'Save edit'}
</Button>
)
: null
}
<Button
kind="secondary"
size="md"
className="edit-save-btn"
renderIcon={isReadMode ? Edit : Save}
onClick={handleEditSaveBtn}
>
{isReadMode ? 'Edit seedlot' : 'Save edit'}
</Button>

<Breadcrumbs
crumbs={
Expand Down

0 comments on commit eacf949

Please sign in to comment.