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 OutputSettingsSection from "./components/OutputSettingsSection";
|
||||||
import { addEvent } from "./lib/analytics";
|
import { addEvent } from "./lib/analytics";
|
||||||
|
|
||||||
|
const IS_OPENAI_DOWN = false;
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [appState, setAppState] = useState<AppState>(AppState.INITIAL);
|
const [appState, setAppState] = useState<AppState>(AppState.INITIAL);
|
||||||
const [generatedCode, setGeneratedCode] = useState<string>("");
|
const [generatedCode, setGeneratedCode] = useState<string>("");
|
||||||
@ -212,6 +214,13 @@ function App() {
|
|||||||
<OnboardingNote />
|
<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.CODING ||
|
||||||
appState === AppState.CODE_READY) && (
|
appState === AppState.CODE_READY) && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user