Skip to content

Commit fef65ab

Browse files
refactor: enhance GitHub icon rendering in CreateOptions component (kubestellar#2246)
* refactor: enhance GitHub icon rendering in CreateOptions component Signed-off-by: Khushi Agrawal <149886195+khushiiagrawal@users.noreply.github.com> * refactor: replace span with Box --------- Signed-off-by: Khushi Agrawal <149886195+khushiiagrawal@users.noreply.github.com>
1 parent 7dd89ad commit fef65ab

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

frontend/src/components/CreateOptions.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,19 @@ spec:
933933
label={t('workloads.tabs.github')}
934934
value="option3"
935935
icon={
936-
<Suspense fallback={<span />}>
937-
<GitHubIcon />
938-
</Suspense>
936+
<Box
937+
sx={{
938+
display: 'inline-flex',
939+
width: '24px',
940+
height: '24px',
941+
alignItems: 'center',
942+
justifyContent: 'center',
943+
}}
944+
>
945+
<Suspense fallback={<span />}>
946+
<GitHubIcon />
947+
</Suspense>
948+
</Box>
939949
}
940950
iconPosition="start"
941951
/>

0 commit comments

Comments
 (0)