Skip to content

Commit 1257e70

Browse files
committed
improvement(logs): drop unnecessary memo and export tab type
1 parent a2e7a76 commit 1257e70

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

apps/sim/app/workspace/[workspaceId]/logs/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { Dashboard } from './dashboard'
2+
export type { LogDetailsTab } from './log-details'
23
export { LogDetails, LogDetailsContent, WorkflowOutputSection } from './log-details'
34
export { ExecutionSnapshot } from './log-details/components/execution-snapshot'
45
export { FileCards } from './log-details/components/file-download'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export type { LogDetailsTab } from './log-details'
12
export { LogDetails, LogDetailsContent, WorkflowOutputSection } from './log-details'

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/log-details.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,7 @@ interface LogDetailsContentProps {
269269
* embedded directly inside the Mothership resource panel — keep the two in
270270
* sync by editing this component, not by re-implementing it elsewhere.
271271
*/
272-
export const LogDetailsContent = memo(function LogDetailsContent({
273-
log,
274-
onActiveTabChange,
275-
}: LogDetailsContentProps) {
272+
export function LogDetailsContent({ log, onActiveTabChange }: LogDetailsContentProps) {
276273
const [isExecutionSnapshotOpen, setIsExecutionSnapshotOpen] = useState(false)
277274
const [activeTab, setActiveTab] = useState<LogDetailsTab>('overview')
278275
const [prevLogId, setPrevLogId] = useState(log.id)
@@ -619,7 +616,7 @@ export const LogDetailsContent = memo(function LogDetailsContent({
619616
)}
620617
</>
621618
)
622-
})
619+
}
623620

624621
interface LogDetailsProps {
625622
/** The log to display details for */

0 commit comments

Comments
 (0)