diff --git a/src/dashboard/Dashboard.tsx b/src/dashboard/Dashboard.tsx index 8c4b9b1..145a235 100644 --- a/src/dashboard/Dashboard.tsx +++ b/src/dashboard/Dashboard.tsx @@ -34,18 +34,18 @@ const Dashboard = () => { const handleMainTabChange = (tabId: MainTab) => { setActiveMainTab(tabId); - // Set default sub tab based on main tab, but none for customer-details + // Set default sub tab based on main tab - always first form const defaultSubTabs: Record = { 'transactions': 'bank-transfer', 'summary': 'branch-summary', - 'accounts': 'fixed-deposit', - 'create-account': 'fixed-deposit-new', - 'users': 'customers', + 'accounts': 'account-details', + 'create-account': 'joint-account-new', + 'users': 'create-user', 'customer-details': 'customer-info', - 'branches': 'summary', + 'branches': 'create-branch', 'savings-plans': 'create', 'my-profile': 'details', - 'fixed-deposits': 'fixed-deposit', + 'fixed-deposits': 'create-fd', }; setActiveSubTab(defaultSubTabs[tabId]); }; diff --git a/src/dashboard/forms/CreateBranchForm.tsx b/src/dashboard/forms/CreateBranchForm.tsx index 7a9f267..9e3447f 100644 --- a/src/dashboard/forms/CreateBranchForm.tsx +++ b/src/dashboard/forms/CreateBranchForm.tsx @@ -1,5 +1,4 @@ import React, { useState } from 'react'; -import { SubmitButton } from '../../components/common'; import type { CreateBranch, BranchDetails } from '../../features/branch'; interface CreateBranchFormProps { @@ -78,11 +77,11 @@ const CreateBranchForm: React.FC = ({ onSuccess, isLoadin } return ( -
+ {/* Parent handles API errors; this form shows local success state only */}
-
-