Merge branch 'main' into hosted
This commit is contained in:
commit
d72912f11c
@ -31,6 +31,8 @@ import CodeTab from "./components/CodeTab";
|
||||
import OutputSettingsSection from "./components/OutputSettingsSection";
|
||||
import { addEvent } from "./lib/analytics";
|
||||
|
||||
const IS_OPENAI_DOWN = false;
|
||||
|
||||
function App() {
|
||||
const [appState, setAppState] = useState<AppState>(AppState.INITIAL);
|
||||
const [generatedCode, setGeneratedCode] = useState<string>("");
|
||||
@ -212,6 +214,13 @@ function App() {
|
||||
<OnboardingNote />
|
||||
)}
|
||||
|
||||
{IS_OPENAI_DOWN && (
|
||||
<div className="bg-black text-white dark:bg-white dark:text-black p-3 rounded">
|
||||
OpenAI API is currently down. Try back in 30 minutes or later. We
|
||||
apologize for the inconvenience.
|
||||
</div>
|
||||
)}
|
||||
|
||||
{(appState === AppState.CODING ||
|
||||
appState === AppState.CODE_READY) && (
|
||||
<>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user