Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya Smiyukha committed Jul 20, 2023
1 parent f5a32b1 commit ea7da3c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/ui/src/app/App.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {
hasFunds: true,
hasWallet: true,
isRPCNodeConnected: true,
hasRegisteredEmail: true
hasRegisteredEmail: true,
},

parameters: {
Expand Down Expand Up @@ -120,7 +120,7 @@ export default {
],

localStorage: {
membersEmail: args.hasRegisteredEmail ? JSON.stringify({ 0: 'alice@example.com' }) : '',
membersEmail: args.hasRegisteredEmail ? JSON.stringify({ 0: 'alice@example.com' }) : '',
},
}
},
Expand Down Expand Up @@ -414,22 +414,21 @@ export const BuyMembershipTxFailure: Story = {
},
}


// ----------------------------------------------------------------------------
// Test Emil Subsciption Modal
// ----------------------------------------------------------------------------
export const DeclineEmailSubscriptionModal: Story = {
export const EmailSubscriptionModal: Story = {
args: {
isLoggedIn: true,
hasMemberships: true,
hasAccounts: true,
hasFunds: true,
hasWallet: true,
isRPCNodeConnected: true,
hasRegisteredEmail: false
hasRegisteredEmail: false,
},

name: 'Email subscription modal',
name: 'Decline email subscription modal',

play: async ({ canvasElement }) => {
const screen = within(canvasElement)
Expand All @@ -438,4 +437,4 @@ export const DeclineEmailSubscriptionModal: Story = {
userEvent.click(screen.getByText('Not now'))
expect(screen.getByText('Sign up to email notifications')).not.toBeInTheDocument()
},
}
}

0 comments on commit ea7da3c

Please sign in to comment.