Skip to content

Commit c08fce6

Browse files
authored
Remove Back button from Setup page (#2310)
You can't go back to the Welcome step because it just proceeds you to the Setup step if you're already logged in. So the button didn't do anything.
1 parent a44880b commit c08fce6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

web/src/components/wizard/SetupStep.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import Card from "../common/Card";
33
import Button from "../common/Button";
44
import { useConfig } from "../../contexts/ConfigContext";
55
import { useWizardMode } from "../../contexts/WizardModeContext";
6-
import { ChevronLeft, ChevronRight } from "lucide-react";
6+
import { ChevronRight } from "lucide-react";
77
import LinuxSetup from "./setup/LinuxSetup";
88
import { useQuery, useMutation } from "@tanstack/react-query";
99
import { useAuth } from "../../contexts/AuthContext";
1010
import { handleUnauthorized } from "../../utils/auth";
1111

1212
interface SetupStepProps {
1313
onNext: () => void;
14-
onBack: () => void;
1514
}
1615

1716
interface Status {
@@ -23,7 +22,7 @@ interface ConfigError extends Error {
2322
errors?: { field: string; message: string }[];
2423
}
2524

26-
const SetupStep: React.FC<SetupStepProps> = ({ onNext, onBack }) => {
25+
const SetupStep: React.FC<SetupStepProps> = ({ onNext }) => {
2726
const { config, updateConfig, prototypeSettings } = useConfig();
2827
const { text } = useWizardMode();
2928
const [showAdvanced, setShowAdvanced] = useState(true);
@@ -162,10 +161,7 @@ const SetupStep: React.FC<SetupStepProps> = ({ onNext, onBack }) => {
162161
)}
163162
</Card>
164163

165-
<div className="flex justify-between">
166-
<Button variant="outline" onClick={onBack} icon={<ChevronLeft className="w-5 h-5" />}>
167-
Back
168-
</Button>
164+
<div className="flex justify-end">
169165
<Button onClick={handleNext} icon={<ChevronRight className="w-5 h-5" />}>
170166
Next: Validate Host
171167
</Button>

0 commit comments

Comments
 (0)