Skip to content

Commit

Permalink
fix(signature-collection): hide view list while active (#16474)
Browse files Browse the repository at this point in the history
* fix(signature-collection): hide view list while active

* chore: nx format:write update dirty files

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 21, 2024
1 parent c910dd7 commit 7c83ad4
Showing 1 changed file with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,22 @@ export const Constituency = ({
maxProgress: list.area.min,
withLabel: true,
}}
cta={{
label: formatMessage(m.viewList),
variant: 'text',
onClick: () => {
navigate(
SignatureCollectionPaths.ParliamentaryConstituencyList.replace(
':constituencyName',
constituencyName,
).replace(':listId', list.id),
)
},
}}
cta={
(allowedToProcess && !list.active) || !allowedToProcess
? {
label: formatMessage(m.viewList),
variant: 'text',
onClick: () => {
navigate(
SignatureCollectionPaths.ParliamentaryConstituencyList.replace(
':constituencyName',
constituencyName,
).replace(':listId', list.id),
)
},
}
: undefined
}
tag={
!list.reviewed
? {
Expand Down

0 comments on commit 7c83ad4

Please sign in to comment.