wrap selection in object
Co-authored-by: Camila Belo <camilaibs@gmail.com> Co-authored-by: Eric Peterson <iamEAP@users.noreply.github.com> Signed-off-by: Anders Näsman <andersn@spotify.com>
This commit is contained in:
@@ -24,9 +24,11 @@ export type ReportIssueTemplate = {
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type ReportIssueTemplateBuilder = (
|
||||
selection: Selection,
|
||||
) => ReportIssueTemplate;
|
||||
export type ReportIssueTemplateBuilder = ({
|
||||
selection,
|
||||
}: {
|
||||
selection: Selection;
|
||||
}) => ReportIssueTemplate;
|
||||
|
||||
// @public
|
||||
export const techdocsModuleAddonsContribPlugin: BackstagePlugin<{}, {}>;
|
||||
|
||||
@@ -124,7 +124,9 @@ export const ReportIssueAddon = ({
|
||||
>
|
||||
<IssueLink
|
||||
repository={repository}
|
||||
template={buildTemplate ? buildTemplate(selection) : defaultTemplate}
|
||||
template={
|
||||
buildTemplate ? buildTemplate({ selection }) : defaultTemplate
|
||||
}
|
||||
/>
|
||||
</Paper>
|
||||
</Portal>
|
||||
|
||||
@@ -25,9 +25,11 @@ export type ReportIssueTemplate = {
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export type ReportIssueTemplateBuilder = (
|
||||
selection: Selection,
|
||||
) => ReportIssueTemplate;
|
||||
export type ReportIssueTemplateBuilder = ({
|
||||
selection,
|
||||
}: {
|
||||
selection: Selection;
|
||||
}) => ReportIssueTemplate;
|
||||
|
||||
export type Repository = {
|
||||
type: string;
|
||||
|
||||
Reference in New Issue
Block a user