diff --git a/web/app/components/app/overview/embedded/index.tsx b/web/app/components/app/overview/embedded/index.tsx index 225ab9667f..3b150d7087 100644 --- a/web/app/components/app/overview/embedded/index.tsx +++ b/web/app/components/app/overview/embedded/index.tsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react' +import React, { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' import cn from 'classnames' import style from './style.module.css' @@ -43,10 +43,15 @@ const prefixEmbedded = 'appOverview.overview.appInfo.embedded' type Option = keyof typeof OPTION_MAP +type OptionStatus = { + iframe: boolean + scripts: boolean +} + const Embedded = ({ isShow, onClose, appBaseUrl, accessToken }: Props) => { const { t } = useTranslation() const [option, setOption] = useState