Skip to content

Commit

Permalink
fix ts issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IkeHunter committed Oct 17, 2024
1 parent b03d14d commit e1d85e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/mock/mock-clubs.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export const mockClubs: IClub[] = [
{
id: 'club-1',
id: 0,
name: 'Test Club 1',
ownerId: '12345',
ownerId: 0,
},
{
id: 'club-2',
id: 1,
name: 'Test Club 2',
ownerId: '98765',
ownerId: 1,
},
{
id: 'club-3',
id: 2,
name: 'Test Club 3',
ownerId: '98765',
ownerId: 1,
},
]
4 changes: 2 additions & 2 deletions src/mock/mock-user.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { mockClubs } from './mock-clubs'

export const mockUser: IUser & { token: string } = {
id: '12345',
id: 0,
token: 'test-token',
email: '[email protected]',
firstName: 'John',
lastName: 'Doe',
clubs: mockClubs.map((club) => ({
id: club.id,
name: club.name,
ownerId: '12345',
ownerId: 0,
})),
image:
'https://static.vecteezy.com/system/resources/thumbnails/001/840/618/small_2x/picture-profile-icon-male-icon-human-or-people-sign-and-symbol-free-vector.jpg',
Expand Down
2 changes: 1 addition & 1 deletion src/types/group.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare interface IClubFields {
name: string
ownerId: string
ownerId: number
spotifyAuthId?: string
defaultDeviceId?: string
}
Expand Down

0 comments on commit e1d85e1

Please sign in to comment.