Skip to content

Commit 1206923

Browse files
committed
ref(nav): remove explicit size=sm inside topbar.slot
1 parent 9452122 commit 1206923

File tree

15 files changed

+4
-32
lines changed

15 files changed

+4
-32
lines changed

static/app/components/profiling/continuousProfileHeader.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ export function ContinuousProfileHeader({transaction}: ContinuousProfileHeader)
5757
<Fragment>
5858
{transactionTarget && (
5959
<TopBar.Slot name="actions">
60-
<LinkButton
61-
size="sm"
62-
onClick={handleGoToTransaction}
63-
to={transactionTarget}
64-
>
60+
<LinkButton onClick={handleGoToTransaction} to={transactionTarget}>
6561
{t('Go to Trace')}
6662
</LinkButton>
6763
</TopBar.Slot>

static/app/components/profiling/profileHeader.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ function ProfileHeader({transaction, projectId, eventId}: ProfileHeaderProps) {
9595
<Fragment>
9696
{transactionTarget && (
9797
<TopBar.Slot name="actions">
98-
<LinkButton
99-
size="sm"
100-
onClick={handleGoToTransaction}
101-
to={transactionTarget}
102-
>
98+
<LinkButton onClick={handleGoToTransaction} to={transactionTarget}>
10399
{t('Go to Trace')}
104100
</LinkButton>
105101
</TopBar.Slot>

static/app/views/alerts/list/header.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export function AlertHeader({activeTab}: Props) {
7272
<Fragment>
7373
<TopBar.Slot name="actions">
7474
<CreateAlertButton
75-
size="sm"
7675
organization={organization}
7776
iconProps={{size: 'sm'}}
7877
priority="primary"
@@ -86,7 +85,6 @@ export function AlertHeader({activeTab}: Props) {
8685
{t('Create Alert')}
8786
</CreateAlertButton>
8887
<LinkButton
89-
size="sm"
9088
onClick={handleNavigateToSettings}
9189
href="#"
9290
icon={<IconSettings size="sm" />}

static/app/views/alerts/rules/issue/details/ruleDetails.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,15 +441,13 @@ export default function AlertRuleDetails() {
441441
)}
442442
</Access>
443443
<LinkButton
444-
size="sm"
445444
icon={<IconCopy />}
446445
to={duplicateLink}
447446
disabled={rule.status === 'disabled'}
448447
>
449448
{t('Duplicate')}
450449
</LinkButton>
451450
<LinkButton
452-
size="sm"
453451
icon={<IconEdit />}
454452
to={makeAlertsPathname({
455453
path: `/rules/${projectSlug}/${ruleId}/`,

static/app/views/alerts/rules/metric/details/header.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ export function DetailsHeader({
131131
</Access>
132132
)}
133133
<LinkButton
134-
size="sm"
135134
icon={<IconCopy />}
136135
to={duplicateLink}
137136
disabled={deprecateTransactionsAlerts}
@@ -147,7 +146,7 @@ export function DetailsHeader({
147146
>
148147
{t('Duplicate')}
149148
</LinkButton>
150-
<LinkButton size="sm" icon={<IconEdit />} to={settingsLink}>
149+
<LinkButton icon={<IconEdit />} to={settingsLink}>
151150
{t('Edit Rule')}
152151
</LinkButton>
153152
</TopBar.Slot>

static/app/views/alerts/rules/uptime/details.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,12 @@ export default function UptimeAlertDetails() {
155155
{hasPageFrameFeature ? (
156156
<TopBar.Slot name="actions">
157157
<StatusToggleButton
158-
size="sm"
159158
uptimeDetector={detector}
160159
onToggleStatus={data => toggleStatus(data)}
161160
disabled={!canEdit}
162161
{...(canEdit ? {} : {tooltipProps: {title: permissionTooltipText}})}
163162
/>
164163
<LinkButton
165-
size="sm"
166164
icon={<IconEdit />}
167165
disabled={!canEdit}
168166
tooltipProps={{title: canEdit ? undefined : permissionTooltipText}}

static/app/views/dashboards/manage/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,6 @@ function ManageDashboards() {
683683
trigger={triggerProps => (
684684
<Button
685685
{...triggerProps}
686-
size="sm"
687686
data-test-id="dashboard-create"
688687
priority="primary"
689688
icon={<IconAdd />}
@@ -702,7 +701,6 @@ function ManageDashboards() {
702701
limitMessage,
703702
}) => (
704703
<Button
705-
size="sm"
706704
data-test-id="dashboard-create"
707705
onClick={event => {
708706
event.preventDefault();
@@ -727,7 +725,6 @@ function ManageDashboards() {
727725
</Feature>
728726
<Feature features="dashboards-import">
729727
<Button
730-
size="sm"
731728
onClick={() => {
732729
openImportDashboardFromFileModal({
733730
organization,

static/app/views/discover/landing.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ function DiscoverLanding() {
207207
{hasPageFrameFeature ? (
208208
<TopBar.Slot name="actions">
209209
<LinkButton
210-
size="sm"
211210
data-test-id="build-new-query"
212211
to={to}
213212
priority="primary"

static/app/views/feedback/feedbackListPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ export default function FeedbackListPage() {
165165
<Fragment>
166166
<TopBar.Slot name="actions">
167167
<LinkButton
168-
size="sm"
169168
icon={<IconSiren />}
170169
to={{
171170
pathname: makeAlertsPathname({

static/app/views/insights/crons/views/overview.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ function CronsOverview() {
104104
<Fragment>
105105
<TopBar.Slot name="actions">
106106
<Button
107-
size="sm"
108107
icon={<IconList />}
109108
onClick={() =>
110109
openBulkEditMonitorsModal({
@@ -117,7 +116,7 @@ function CronsOverview() {
117116
{t('Manage Monitors')}
118117
</Button>
119118
{!guideVisible && (
120-
<NewMonitorButton size="sm" icon={<IconAdd />}>
119+
<NewMonitorButton icon={<IconAdd />}>
121120
{t('Add Cron Monitor')}
122121
</NewMonitorButton>
123122
)}

0 commit comments

Comments
 (0)