parent
cd2b005be7
commit
3fd70c2447
1 changed files with 4 additions and 1 deletions
|
@ -13,6 +13,7 @@ import { AsideViewMenu } from './components/AsideViewMenu.mjs'
|
||||||
import { LoadingStatus } from './components/LoadingStatus.mjs'
|
import { LoadingStatus } from './components/LoadingStatus.mjs'
|
||||||
import { ModalContextProvider } from '@freesewing/react/context/Modal'
|
import { ModalContextProvider } from '@freesewing/react/context/Modal'
|
||||||
import { LoadingStatusContextProvider } from '@freesewing/react/context/LoadingStatus'
|
import { LoadingStatusContextProvider } from '@freesewing/react/context/LoadingStatus'
|
||||||
|
import { useAccount } from '../../hooks/useAccount/index.mjs'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FreeSewing's pattern editor
|
* FreeSewing's pattern editor
|
||||||
|
@ -115,8 +116,10 @@ export const Editor = ({
|
||||||
_: { ...ephemeralState, missingMeasurements },
|
_: { ...ephemeralState, missingMeasurements },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const { account } = useAccount()
|
||||||
|
|
||||||
if (state.ui?.ux === undefined) {
|
if (state.ui?.ux === undefined) {
|
||||||
passDownState.ui = { ...(state.ui || {}), ux: editorConfig.defaultUx }
|
passDownState.ui = { ...(state.ui || {}), ux: account.control }
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue