Skip to content

Commit

Permalink
Merge pull request Expensify#30773 from VickyStash/fix/30636-headerWi…
Browse files Browse the repository at this point in the history
…thBackButton-storybook-error

Fix: HeaderWithBackButton component shows error in storybook
  • Loading branch information
grgia authored Nov 6, 2023
2 parents 0680f27 + b1a0cb2 commit 6ccaf3b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/stories/HeaderWithBackButton.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import React from 'react';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import withNavigationFallback from '@components/withNavigationFallback';

const HeaderWithBackButtonWithNavigation = withNavigationFallback(HeaderWithBackButton);

/**
* We use the Component Story Format for writing stories. Follow the docs here:
Expand All @@ -8,12 +11,12 @@ import HeaderWithBackButton from '@components/HeaderWithBackButton';
*/
const story = {
title: 'Components/HeaderWithBackButton',
component: HeaderWithBackButton,
component: HeaderWithBackButtonWithNavigation,
};

function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <HeaderWithBackButton {...args} />;
return <HeaderWithBackButtonWithNavigation {...args} />;
}

// Arguments can be passed to the component by binding
Expand Down

0 comments on commit 6ccaf3b

Please sign in to comment.