From 1d24a4cfce856681c1fc4d21ed4200a96cdfcc8e Mon Sep 17 00:00:00 2001 From: asheen1234 Date: Tue, 12 May 2026 10:51:12 -0400 Subject: [PATCH] fix: align with main Signed-off-by: asheen1234 --- .../RepoOwnerPicker/RepoOwnerPicker.tsx | 94 +++++++++---------- 1 file changed, 45 insertions(+), 49 deletions(-) diff --git a/plugins/scaffolder/src/components/fields/RepoOwnerPicker/RepoOwnerPicker.tsx b/plugins/scaffolder/src/components/fields/RepoOwnerPicker/RepoOwnerPicker.tsx index ad88b3a02a..024f7f03a1 100644 --- a/plugins/scaffolder/src/components/fields/RepoOwnerPicker/RepoOwnerPicker.tsx +++ b/plugins/scaffolder/src/components/fields/RepoOwnerPicker/RepoOwnerPicker.tsx @@ -103,53 +103,49 @@ export const RepoOwnerPicker = (props: RepoOwnerPickerProps) => { const hostType = (host && integrationApi.byHost(host)?.type) ?? null; - const renderRepoOwnerPicker = () => { - switch (hostType) { - case 'github': - return ( - - ); - case 'gitlab': - return ( - - ); - default: - return ( - - ); - } - }; - - return renderRepoOwnerPicker(); + switch (hostType) { + case 'github': + return ( + + ); + case 'gitlab': + return ( + + ); + default: + return ( + + ); + } };