fix: replace create-profile Back button with Close

This commit is contained in:
zhom
2026-07-08 01:19:52 +04:00
parent c91536325f
commit 5c6d05a62e
+2 -7
View File
@@ -148,11 +148,6 @@ export function CreateProfileDialog({
setLaunchHook(""); setLaunchHook("");
}; };
// Handle back button
const handleBack = () => {
resetForm();
};
const handleTabChange = (value: string) => { const handleTabChange = (value: string) => {
setActiveTab(value); setActiveTab(value);
resetForm(); resetForm();
@@ -1559,8 +1554,8 @@ export function CreateProfileDialog({
<DialogFooter className="shrink-0 border-t pt-4"> <DialogFooter className="shrink-0 border-t pt-4">
{currentStep === "browser-config" ? ( {currentStep === "browser-config" ? (
<> <>
<RippleButton variant="outline" onClick={handleBack}> <RippleButton variant="outline" onClick={handleClose}>
{t("common.buttons.back")} {t("common.buttons.close")}
</RippleButton> </RippleButton>
<LoadingButton <LoadingButton
onClick={handleCreate} onClick={handleCreate}