Skip to content

Commit

Permalink
fix(admin-ui): Fix admin ui code templates (#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschortsch authored Nov 24, 2023
1 parent c1b8062 commit a9e67fe
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default [
id: 'my-button',
label: 'My Action',
locationId: '${locationId}',
});
]`,
}),
];`,
navMenu: locationId => `
import { addNavMenuSection } from '@vendure/admin-ui/core';
Expand All @@ -117,19 +117,19 @@ export default [
id: 'my-menu-item',
label: 'My Menu Item',
routerLink: ['/extensions/my-plugin'],
}
'${locationId}'
);
]`,
},
'${locationId}',
),
];`,
detailComponent: locationId => `
import { registerCustomDetailComponent } from '@vendure/admin-ui/core';
export default [
registerCustomDetailComponent({
locationId: '${locationId}',
component: MyCustomComponent,
});
]`,
}),
];`,
dataTable: (locationId, metadata) => `
import { registerDataTableComponent } from '@vendure/admin-ui/core';
Expand All @@ -138,6 +138,6 @@ export default [
tableId: '${locationId}',
columnId: '${metadata}',
component: MyCustomComponent,
});
]`,
}),
];`,
};

0 comments on commit a9e67fe

Please sign in to comment.