* Feature: Canvas Layout Options(max width config) * Fixing css issues. * Changing Default Device option to Desktop. * Changed Implementation to maintain resize updates within the client. * Addressing code review changes. * Updating device resolutions. * updating cytests * Fixing resize bug.
15 lines
571 B
TypeScript
15 lines
571 B
TypeScript
import { ApplicationPayload } from "constants/ReduxActionConstants";
|
|
import { AppsmithDefaultLayout } from "pages/Editor/MainContainerLayoutControl";
|
|
import { generateReactKey } from "utils/generators";
|
|
export const getApplicationPayload = (): ApplicationPayload => ({
|
|
id: generateReactKey(),
|
|
name: generateReactKey(),
|
|
organizationId: generateReactKey(),
|
|
appIsExample: false,
|
|
appLayout: AppsmithDefaultLayout,
|
|
});
|
|
|
|
export const getApplicationPayloads = (count: number): ApplicationPayload[] => {
|
|
return [...Array(count).keys()].map(getApplicationPayload);
|
|
};
|