Add Sigit ID as a path param #195
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "issue-171"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #171
Intent
When opening a
/sign
page, we do not link a particularsigit
which we are opening, and we pass the info aboutsigit
in thelocation.state
object.To make it linkable, I've added an optional
:id
param in the/sign
route and stopped providing state in thelocation.state
.id
param is actually theSigit ID
which is thecreate event id
.@ -73,3 +75,1 @@
arrayBuffer: decryptedArrayBuffer,
uploadedZip
} = location.state || {}
const [metaInNavState, setMetaInNavState] = useState<Meta | undefined>()
We should just replace the value of
metaInNavState
without having states.We can just move it out of the destructuring and modify it if needed? Something like?
@ -19,6 +19,7 @@ export const appPrivateRoutes = {
homePage: '/',
create: '/create',
sign: '/sign',
Can we use optional segment? Instead of two routes
/sign
and/sign/:id
we can combine it into/sign/:id?
.Can you please add update the description of the PR with its primarily objective and what changes have been made?
I would like to see:
sigitCreateId
-> selfExplanatory@ -76,0 +81,4 @@
}
/**
* If userAppData (redux) is available, and we have route param (sigit id)
sigit id - what is this? should be defined