fix(editor): Project related frontend fixes (no-changelog) (#9482)
This commit is contained in:
@@ -4,11 +4,14 @@ import type {
|
||||
ProjectSharingData,
|
||||
ProjectType,
|
||||
} from '@/features/projects/projects.types';
|
||||
import { ProjectTypes } from '@/features/projects/projects.utils';
|
||||
|
||||
export const createProjectSharingData = (projectType?: ProjectType): ProjectSharingData => ({
|
||||
id: faker.string.uuid(),
|
||||
name: faker.lorem.words({ min: 1, max: 3 }),
|
||||
type: projectType || 'personal',
|
||||
type: projectType ?? ProjectTypes.Personal,
|
||||
createdAt: faker.date.past().toISOString(),
|
||||
updatedAt: faker.date.recent().toISOString(),
|
||||
});
|
||||
|
||||
export const createProjectListItem = (projectType?: ProjectType): ProjectListItem => {
|
||||
|
||||
Reference in New Issue
Block a user