refactor: Structure api mock data with folders
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const currentUserPayload = (currentUser, role) => {
|
||||
const getCurrentUserMock = (currentUser, role) => {
|
||||
return {
|
||||
data: {
|
||||
createdAt: currentUser.createdAt.toISOString(),
|
||||
@@ -29,4 +29,4 @@ const currentUserPayload = (currentUser, role) => {
|
||||
};
|
||||
};
|
||||
|
||||
export default currentUserPayload;
|
||||
export default getCurrentUserMock;
|
@@ -1,4 +1,4 @@
|
||||
const userPayload = (currentUser, role) => {
|
||||
const getUserMock = (currentUser, role) => {
|
||||
return {
|
||||
data: {
|
||||
createdAt: currentUser.createdAt.toISOString(),
|
||||
@@ -28,4 +28,4 @@ const userPayload = (currentUser, role) => {
|
||||
};
|
||||
};
|
||||
|
||||
export default userPayload;
|
||||
export default getUserMock;
|
Reference in New Issue
Block a user