Skip to content

Commit

Permalink
feat: relationshipStatus mock data ๊ตฌํ˜„
Browse files Browse the repository at this point in the history
user mock data ๋‚ด๋ถ€์— ๊ตฌํ˜„๋˜์–ด ์žˆ์—ˆ์œผ๋‚˜, interface์— ๋”ฐ๋ผ ๋ถ„๋ฆฌํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • Loading branch information
Legitgoons committed May 5, 2024
1 parent b635863 commit eb09bb7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
18 changes: 18 additions & 0 deletions src/app/mocks/consts/relationshipStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Relationship } from '@/shared/consts';
import { users } from './user';

interface RelationshipStatus {
[userId: keyof typeof users]: Relationship;
}

export const relationshipStatus: RelationshipStatus = {
1: { relationshipStatus: 'self' },
2: { relationshipStatus: 'following' },
3: { relationshipStatus: 'pending' },
4: { relationshipStatus: 'none' },
5: { relationshipStatus: 'following' },
6: { relationshipStatus: 'pending' },
7: { relationshipStatus: 'following' },
8: { relationshipStatus: 'none' },
9: { relationshipStatus: 'pending' },
};
9 changes: 0 additions & 9 deletions src/app/mocks/consts/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const users: Users = {
feedCount: 100,
followingCount: 347,
followerCount: 25,
relationshipStatus: 'self',
},
2: {
id: 2,
Expand All @@ -23,7 +22,6 @@ export const users: Users = {
feedCount: 124,
followingCount: 2,
followerCount: 5341,
relationshipStatus: 'following',
},
3: {
id: 3,
Expand All @@ -33,7 +31,6 @@ export const users: Users = {
feedCount: 6,
followingCount: 35,
followerCount: 423,
relationshipStatus: 'pending',
},
4: {
id: 4,
Expand All @@ -43,7 +40,6 @@ export const users: Users = {
feedCount: 24,
followingCount: 42,
followerCount: 53251,
relationshipStatus: 'none',
},
5: {
id: 5,
Expand All @@ -53,7 +49,6 @@ export const users: Users = {
feedCount: 51,
followingCount: 7897,
followerCount: 7890,
relationshipStatus: 'following',
},
6: {
id: 6,
Expand All @@ -63,7 +58,6 @@ export const users: Users = {
feedCount: 97,
followingCount: 98,
followerCount: 8975,
relationshipStatus: 'pending',
},
7: {
id: 7,
Expand All @@ -73,7 +67,6 @@ export const users: Users = {
feedCount: 87,
followingCount: 67,
followerCount: 4556,
relationshipStatus: 'following',
},
8: {
id: 8,
Expand All @@ -83,7 +76,6 @@ export const users: Users = {
feedCount: 32,
followingCount: 24,
followerCount: 543,
relationshipStatus: 'none',
},
9: {
id: 9,
Expand All @@ -93,6 +85,5 @@ export const users: Users = {
feedCount: 66,
followingCount: 1,
followerCount: 1,
relationshipStatus: 'pending',
},
};

0 comments on commit eb09bb7

Please sign in to comment.