Skip to content

Commit aaacd05

Browse files
authored
fix: Adjust buttons designs in lists (#4425)
* fix: Adjust buttons designs * fix: remove default
1 parent 3f3cfb9 commit aaacd05

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

src/components/Clusters/views/ClusterOverview/ClusterModulesCard.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ export default function ClusterModulesCard() {
107107
: null,
108108
]}
109109
additionalContent={
110-
<Button
111-
design="Emphasized"
112-
onClick={() => navigate(clusterUrl('kymamodules'))}
113-
>
110+
<Button onClick={() => navigate(clusterUrl('kymamodules'))}>
114111
{t('kyma-modules.modify-modules')}
115112
</Button>
116113
}

src/components/Modules/community/CommunityModulesList.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,7 @@ export const CommunityModulesList = ({
363363
actions={actions as any}
364364
customRowClick={handleClickResource}
365365
extraHeaderContent={[
366-
<Button
367-
key="add-community-module"
368-
design="Emphasized"
369-
onClick={handleShowAddModule}
370-
>
366+
<Button key="add-community-module" onClick={handleShowAddModule}>
371367
{t('common.buttons.add')}
372368
</Button>,
373369
]}

src/components/Modules/components/KymaModulesList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ export const KymaModulesList = ({
306306
extraHeaderContent={[
307307
<Button
308308
key="add-module"
309-
design="Emphasized"
310309
disabled={!resource}
311310
onClick={handleShowAddModule}
312311
>

src/shared/components/EmptyListComponent/EmptyListComponent.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ export const EmptyListComponent = ({
6060
subtitle={<span className="sap-margin-top-small">{subtitle}</span>}
6161
>
6262
<div className="emptyListComponent__buttons">
63-
{showButton && (
64-
<Button design="Emphasized" onClick={onClick}>
65-
{buttonText}
66-
</Button>
67-
)}
63+
{showButton && <Button onClick={onClick}>{buttonText}</Button>}
6864
{url && (
6965
<ExternalLink
7066
text="Learn More"

0 commit comments

Comments
 (0)