mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-08-27 21:30:23 +02:00
fix: replace create-profile Back button with Close
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user