= ({
}) => {
const { t } = useTranslation()
const ref = useRef(null)
- const [mounted, setMounted] = useState(false)
const appDetail = useStore(state => state.appDetail)
useClickAway(() => {
- if (mounted)
+ if (fixedWidth)
onCancel()
}, ref)
- useEffect(() => {
- setMounted(true)
- }, [])
-
if (!currentLogItem || !currentLogItem.workflow_run_id)
return null
+ const activeTab = isRunActiveTab(defaultTab) ? defaultTab : 'DETAIL'
+ const modalContent = (
+ <>
+ {t('runDetail.title', { ns: 'appLog' })}
+
+
+ >
+ )
+
+ if (!fixedWidth) {
+ return (
+
+ )
+ }
+
return (
@@ -64,11 +98,11 @@ const MessageLogModal: FC = ({
className="absolute top-4 right-3 z-20 cursor-pointer border-none bg-transparent p-1 focus-visible:ring-1 focus-visible:ring-components-input-border-active focus-visible:outline-hidden"
onClick={onCancel}
>
-
+