Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Nov 1, 2024
1 parent adbe883 commit 2cd8e92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/stories/account/Account.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { WithI18next } from '../WithI18next'
import { WithLayout } from '../WithLayout'
import { WithLoggedInUser } from '../WithLoggedInUser'
import { AccountHelper } from '../../sections/account/AccountHelper'
import { CollectionMockRepository } from '@/stories/collection/CollectionMockRepository'

const meta: Meta<typeof Account> = {
title: 'Pages/Account',
Expand All @@ -19,10 +18,5 @@ export default meta
type Story = StoryObj<typeof Account>

export const APITokenTab: Story = {
render: () => (
<Account
collectionRepository={new CollectionMockRepository()}
defaultActiveTabKey={AccountHelper.ACCOUNT_PANEL_TABS_KEYS.apiToken}
/>
)
render: () => <Account defaultActiveTabKey={AccountHelper.ACCOUNT_PANEL_TABS_KEYS.apiToken} />
}
2 changes: 1 addition & 1 deletion src/stories/collection/CollectionErrorMockRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { CollectionFacet } from '../../collection/domain/models/CollectionFacet'
import { CollectionMockRepository } from './CollectionMockRepository'

export class CollectionErrorMockRepository extends CollectionMockRepository {
getById(_id: string): Promise<Collection> {
getById(_id?: string): Promise<Collection> {
return new Promise((_resolve, reject) => {
setTimeout(() => {
reject('Something went wrong')
Expand Down

0 comments on commit 2cd8e92

Please sign in to comment.