1
0
Fork 0

fix(org): Build fixes

This commit is contained in:
joostdecock 2023-02-05 16:49:36 +01:00
parent 8634b84e04
commit c8ce8030f4
6 changed files with 11 additions and 11 deletions

View file

@ -3,13 +3,13 @@ import set from 'lodash.set'
import unset from 'lodash.unset'
import cloneDeep from 'lodash.clonedeep'
import { useLocalStorage } from './useLocalStorage'
import { defaultSettings } from 'shared/components/workbench/default-settings.mjs'
import { defaultGist as baseGist } from 'shared/components/workbench/gist.mjs'
// Generates a default design gist to start from
export const defaultGist = (design, locale = 'en') => {
const gist = {
design,
...defaultSettings,
...baseGist,
_state: { view: 'draft' },
}
if (locale) gist.locale = locale