mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
Refactor SetupView component for improved readability
- Consolidate destructuring of useSetupStore into a single line for cleaner code. - Remove unnecessary blank line at the beginning of the file.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import { useSetupStore } from "@/store/setup-store";
|
import { useSetupStore } from "@/store/setup-store";
|
||||||
import { StepIndicator } from "./setup-view/components";
|
import { StepIndicator } from "./setup-view/components";
|
||||||
import {
|
import {
|
||||||
@@ -12,12 +11,8 @@ import { useNavigate } from "@tanstack/react-router";
|
|||||||
|
|
||||||
// Main Setup View
|
// Main Setup View
|
||||||
export function SetupView() {
|
export function SetupView() {
|
||||||
const {
|
const { currentStep, setCurrentStep, completeSetup, setSkipClaudeSetup } =
|
||||||
currentStep,
|
useSetupStore();
|
||||||
setCurrentStep,
|
|
||||||
completeSetup,
|
|
||||||
setSkipClaudeSetup,
|
|
||||||
} = useSetupStore();
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const steps = ["welcome", "theme", "claude", "github", "complete"] as const;
|
const steps = ["welcome", "theme", "claude", "github", "complete"] as const;
|
||||||
|
|||||||
Reference in New Issue
Block a user