fix(editor): Project related frontend fixes (no-changelog) (#9482)

This commit is contained in:
Csaba Tuncsik
2024-05-22 15:54:55 +02:00
committed by GitHub
parent 62ee796895
commit 8f55bb1457
16 changed files with 170 additions and 41 deletions

View File

@@ -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 => {