feat: refactor view states and redundant api calls

This commit is contained in:
DarkPhoenix2704
2025-09-12 13:38:18 +00:00
parent 05f8d910b8
commit 55c4b1d96a
13 changed files with 485 additions and 345 deletions

View File

@@ -63,3 +63,19 @@ export const defaultRowColorInfo: RowColoringInfo = {
color: null,
is_set_as_background: null,
}
const getDefaultViewMetas = (viewType: ViewTypes) => {
switch (viewType) {
case ViewTypes.FORM:
return {
submit_another_form: false,
show_blank_form: false,
meta: {
hide_branding: false,
background_color: '#F9F9FA',
hide_banner: false,
},
}
}
return {}
}