File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const defaultArgs = {
2323 successDescription : "We'll send you The Recap every week" ,
2424 theme : 'sport' ,
2525 idApiUrl : 'https://idapi.theguardian.com' ,
26- hideNewsletterForSubscribers : true , // Feature flag enabled by default in stories
26+ // hideNewsletterForSubscribers defaults to false (matching production default)
2727} satisfies Story [ 'args' ] ;
2828
2929// Loading state - shows placeholder while auth status is being determined
@@ -84,10 +84,12 @@ export const SignedInNotSubscribed: Story = {
8484
8585// User is signed in and IS subscribed - component returns null (hidden)
8686// Note: This story will render nothing as the component returns null when subscribed
87+ // Requires hideNewsletterForSubscribers: true to enable the subscription check
8788export const SignedInAlreadySubscribed : Story = {
8889 args : {
8990 hidePrivacyMessage : false ,
9091 ...defaultArgs ,
92+ hideNewsletterForSubscribers : true ,
9193 } ,
9294 async beforeEach ( ) {
9395 mocked ( useNewsletterSubscription ) . mockReturnValue ( true ) ;
You can’t perform that action at this time.
0 commit comments