app switch

This commit is contained in:
JzoNg
2024-03-09 10:30:26 +08:00
parent 93e2dc4f5f
commit 5afa5fb085
7 changed files with 26 additions and 23 deletions

View File

@ -38,7 +38,7 @@ const RunPanel: FC<RunProps> = ({ activeTab, runID }) => {
{/* panel detal */}
<div className={cn('grow bg-white h-0 overflow-y-auto', currentTab === 'TRACING' && '!bg-gray-50')}>
{currentTab === 'RESULT' && <Result runID={runID} />}
{currentTab === 'TRACING' && <Tracing />}
{currentTab === 'TRACING' && <Tracing runID={runID} />}
</div>
</div>
)

View File

@ -1,13 +1,13 @@
'use client'
import type { FC } from 'react'
import React, { useState } from 'react'
import { useTranslation } from 'react-i18next'
// import { useTranslation } from 'react-i18next'
// import cn from 'classnames'
import { BlockEnum } from '../types'
import NodePanel from './node'
type TracingProps = {
// appId: string
runID: string
}
const nodeInfoFake = {
@ -18,8 +18,8 @@ const nodeInfoFake = {
status: 'succeeded',
}
const Tracing: FC<TracingProps> = () => {
const { t } = useTranslation()
const Tracing: FC<TracingProps> = ({ runID }) => {
// const { t } = useTranslation()
const [nodeCollapsed, setCurrentTab] = useState<boolean>(false)
const collapseStateChange = () => {