Skip to content

Commit 3bdb26a

Browse files
committed
Reorder hooks
1 parent 84c9db6 commit 3bdb26a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/CreateBranch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ interface Props {
99

1010
export function CreateBranch({ checkBranches }: Props) {
1111
const { value } = useRepo();
12+
const { pop } = useNavigation();
1213
const [branchName, setBranchName] = useState("");
1314
const { revalidate, isLoading } = useExec("git", ["switch", "-c", branchName], {
1415
cwd: value,
@@ -24,7 +25,6 @@ export function CreateBranch({ checkBranches }: Props) {
2425
});
2526
},
2627
});
27-
const { pop } = useNavigation();
2828
const { handleSubmit, itemProps } = useForm({
2929
onSubmit: revalidate,
3030
validation: {

0 commit comments

Comments
 (0)