From 66b31b567b3a24046699e964ff3f9985c5c60e33 Mon Sep 17 00:00:00 2001 From: Gemini AI Date: Mon, 29 Dec 2025 13:06:37 +0400 Subject: [PATCH] fix: resolve t variable scope issue in class components --- components/AIAssist.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/components/AIAssist.tsx b/components/AIAssist.tsx index 4dfcb94..7ca7fd1 100644 --- a/components/AIAssist.tsx +++ b/components/AIAssist.tsx @@ -51,13 +51,13 @@ class CanvasErrorBoundary extends React.Component<{ children: React.ReactNode }, return (
-

{t.canvasCrashed}

+

Canvas Crashed

{this.state.error}

); @@ -67,7 +67,13 @@ class CanvasErrorBoundary extends React.Component<{ children: React.ReactNode }, } const BuildingArtifact = ({ type }: { type: string }) => { const [progress, setProgress] = useState(0); - const steps = t.thinkingSteps; + const steps = [ + "Initializing neural links...", + "Scaffolding architecture...", + "Writing logic blocks...", + "Injecting dynamic modules...", + "Finalizing interactive layers..." + ]; const [currentStep, setCurrentStep] = useState(0); useEffect(() => { @@ -87,7 +93,7 @@ const BuildingArtifact = ({ type }: { type: string }) => {

- {t.building} {type} + Building {type}