diff --git a/src/components/MemoriWidget/MemoriWidget.tsx b/src/components/MemoriWidget/MemoriWidget.tsx index a9638d1d..caf2b5e6 100644 --- a/src/components/MemoriWidget/MemoriWidget.tsx +++ b/src/components/MemoriWidget/MemoriWidget.tsx @@ -3389,6 +3389,7 @@ const MemoriWidget = ({ setAvatarType={setAvatarType} enablePositionControls={enablePositionControls} setEnablePositionControls={setEnablePositionControls} + isAvatar3d={!!integrationConfig?.avatarURL} additionalSettings={additionalSettings} /> )} diff --git a/src/components/SettingsDrawer/SettingsDrawer.tsx b/src/components/SettingsDrawer/SettingsDrawer.tsx index 6e0fcb4a..e3cf809f 100644 --- a/src/components/SettingsDrawer/SettingsDrawer.tsx +++ b/src/components/SettingsDrawer/SettingsDrawer.tsx @@ -25,6 +25,7 @@ export interface Props { setAvatarType: (value: 'blob' | 'avatar3d') => void; enablePositionControls?: boolean; setEnablePositionControls: (value: boolean) => void; + isAvatar3d?: boolean; } const silenceSeconds = [2, 3, 5, 10, 15, 20, 30, 60]; @@ -46,6 +47,7 @@ const SettingsDrawer = ({ setAvatarType, enablePositionControls, setEnablePositionControls, + isAvatar3d, }: Props) => { const { t } = useTranslation(); @@ -153,58 +155,70 @@ const SettingsDrawer = ({ -
- - - { - setAvatarType && setAvatarType(value); - setLocalConfig('avatarType', value); - }} - > - - {({ checked }) => ( - - )} - - - {({ checked }) => ( - - )} - - -
+ {isAvatar3d && ( + <> +
+ + + + { + setAvatarType && setAvatarType(value); + setLocalConfig('avatarType', value); + }} + > + + {({ checked }) => ( + + )} + + + {({ checked }) => ( + + )} + + +
+ +
+ { + setEnablePositionControls(e.target.checked); + }} + /> +
+ + )} -
- { - setEnablePositionControls(e.target.checked); - }} - /> -