mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-01 18:20:28 +00:00
Fix routing bug
This commit is contained in:
@@ -76,7 +76,9 @@ const Category = () => {
|
|||||||
variant='primary-action'
|
variant='primary-action'
|
||||||
text='Settings'
|
text='Settings'
|
||||||
iconLeft={<Settings />}
|
iconLeft={<Settings />}
|
||||||
onClick={() => history.push(`/category-settings/${id}`)}
|
onClick={() =>
|
||||||
|
history.push(`/category-settings/${id || category.id}`)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box>
|
||||||
|
|||||||
@@ -81,7 +81,9 @@ const Feature = () => {
|
|||||||
variant='primary-action'
|
variant='primary-action'
|
||||||
text='Settings'
|
text='Settings'
|
||||||
iconLeft={<Settings />}
|
iconLeft={<Settings />}
|
||||||
onClick={() => history.push(`/feature-settings/${id}`)}
|
onClick={() =>
|
||||||
|
history.push(`/feature-settings/${id || feature.id}`)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
<Box marginBottom='30px'>
|
<Box marginBottom='30px'>
|
||||||
|
|||||||
@@ -141,7 +141,9 @@ const Template = () => {
|
|||||||
text='Prototype'
|
text='Prototype'
|
||||||
iconLeft={<Design />}
|
iconLeft={<Design />}
|
||||||
disabled={!prototype && role === 'productOwner'}
|
disabled={!prototype && role === 'productOwner'}
|
||||||
onClick={() => history.push(`/prototype/${id}`)}
|
onClick={() =>
|
||||||
|
history.push(`/prototype/${id || template.id}`)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
{role === 'productOwner' && (
|
{role === 'productOwner' && (
|
||||||
@@ -151,7 +153,11 @@ const Template = () => {
|
|||||||
variant='primary-action'
|
variant='primary-action'
|
||||||
text='Settings'
|
text='Settings'
|
||||||
iconLeft={<Settings />}
|
iconLeft={<Settings />}
|
||||||
onClick={() => history.push(`/template-settings/${id}`)}
|
onClick={() =>
|
||||||
|
history.push(
|
||||||
|
`/template-settings/${id || template.id}`
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user