generated from Luis/nextjs-python-web-template
dynamic-routing-sidebar #67
@@ -92,7 +92,7 @@ export function Sidebar(props: SidebarProps) {
|
|||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
if (entityData) {
|
if (entityData) {
|
||||||
menuEntityEntries = Array.isArray(entityData.data)
|
menuEntityEntries = Array.isArray(entityData.data)
|
||||||
? entityData.data.map((entity, index) => ({
|
? entityData.data.map((entity) => ({
|
||||||
icon: <PersonIcon />,
|
icon: <PersonIcon />,
|
||||||
label: entity.name,
|
label: entity.name,
|
||||||
to: `/client/${entity.name}`,
|
to: `/client/${entity.name}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user