Skip to content

Commit

Permalink
feat(index): add isAuthorized prop to CatalogLinks component in EditH…
Browse files Browse the repository at this point in the history
…omepage and EditableHomepage

The CatalogLinks component in both EditHomepage and EditableHomepage now receives an isAuthorized prop. This change allows the CatalogLinks component to conditionally render content based on the authorization status, improving the functionality and user experience of the application.
  • Loading branch information
ktun95 committed Feb 28, 2024
1 parent 623fed8 commit 7da4cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/stock-center/src/pages/index/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const EditHomepage = () => {
</Grid>
<Grid container item xs={12} spacing={4} justifyContent="flex-start">
<Slide />
<CatalogLinks />
<CatalogLinks isAuthorized />
<FileLinks />
</Grid>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion apps/stock-center/src/pages/index/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const EditableHomepage = () => {
</Grid>
<Grid container item xs={12} spacing={4} justifyContent="flex-start">
<Slide />
<CatalogLinks />
<CatalogLinks isAuthorized />
<FileLinks />
</Grid>
</Grid>
Expand Down

0 comments on commit 7da4cb2

Please sign in to comment.