diff --git a/app/src/app.tsx b/app/src/app.tsx index 501a4bb1..fd20bee8 100644 --- a/app/src/app.tsx +++ b/app/src/app.tsx @@ -28,14 +28,20 @@ async function installCLI() { } } +enum Step { + WELCOME = 0, + CLI, + FINISH, +} + export default function () { - const [step, setStep] = useState(0) + const [step, setStep] = useState(Step.WELCOME) const command = 'ollama run orca' return ( -
- {step === 0 && ( +
+ {step === Step.WELCOME && ( <>

Welcome to Ollama

@@ -56,7 +62,7 @@ export default function () {
)} - {step === 1 && ( + {step === Step.CLI && ( <>

Install the command line

@@ -79,7 +85,7 @@ export default function () {
)} - {step === 2 && ( + {step === Step.FINISH && ( <>

Run your first model