diff --git a/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx b/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx
index bba6e8a857..9e6e63ddf5 100644
--- a/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx
+++ b/packages/ui/src/components/HeaderPage/HeaderPage.stories.tsx
@@ -44,27 +44,22 @@ const tabs: HeaderTab[] = [
{
id: 'overview',
label: 'Overview',
- href: '/overview',
},
{
id: 'checks',
label: 'Checks',
- href: '/checks',
},
{
id: 'tracks',
label: 'Tracks',
- href: '/tracks',
},
{
id: 'campaigns',
label: 'Campaigns',
- href: '/campaigns',
},
{
id: 'integrations',
label: 'Integrations',
- href: '/integrations',
},
];
@@ -94,19 +89,10 @@ const withRouter = (Story: StoryFn) => (
);
-// White background decorator for stories
-const withWhiteBackground = (Story: StoryFn) => (
-
-
-
-);
-
// Extract layout decorator as a reusable constant
const layoutDecorator = [
(Story: StoryFn) => (
-
+ >
),
];
@@ -143,7 +129,6 @@ export const Default: Story = {
args: {
title: 'Page Title',
},
- decorators: [withWhiteBackground],
};
export const WithTabs: Story = {
@@ -151,11 +136,11 @@ export const WithTabs: Story = {
...Default.args,
tabs,
},
- decorators: [withRouter, withWhiteBackground],
+ decorators: [withRouter],
};
export const WithCustomActions: Story = {
- decorators: [withRouter, withWhiteBackground],
+ decorators: [withRouter],
render: () => (
(
(
);
-// White background decorator for stories
-const withWhiteBackground = (Story: StoryFn) => (
-
-
-
-);
-
export const Default: Story = {
args: {
children: '',
},
- decorators: [withRouter, withWhiteBackground],
+ decorators: [withRouter],
render: () => (
-
- Tab 1
-
-
- Tab 2
-
-
- Tab 3 With long title
-
+ Tab 1
+ Tab 2
+ Tab 3 With long title
),
@@ -69,7 +54,7 @@ export const WithTabPanels: Story = {
args: {
children: '',
},
- decorators: [withRouter, withWhiteBackground],
+ decorators: [withRouter],
render: () => (
@@ -94,7 +79,6 @@ export const WithMockedURLTab2: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -127,7 +111,6 @@ export const WithMockedURLTab3: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -160,7 +143,6 @@ export const WithMockedURLNoMatch: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -199,7 +181,6 @@ export const ExactMatchingDefault: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -236,7 +217,6 @@ export const PrefixMatchingForNestedRoutes: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -277,7 +257,6 @@ export const PrefixMatchingDeepNesting: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -313,7 +292,6 @@ export const MixedMatchingStrategies: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -365,7 +343,6 @@ export const PrefixMatchingEdgeCases: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -408,7 +385,6 @@ export const PrefixMatchingWithSlash: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -450,7 +426,6 @@ export const RootPathMatching: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (
@@ -485,7 +460,6 @@ export const AutoSelectionOfTabs: Story = {
args: {
children: '',
},
- decorators: [withWhiteBackground],
render: () => (