@@ -132,7 +132,7 @@ export function Dashboard() {
132132 < div className = 'flex flex-wrap justify-center sm:justify-between items-center py-4' >
133133 { /* header */ }
134134 < h1 className = 'text-3xl sm:text-5xl text-alice font-jetBrain py-6' >
135- { userName != 'rimane' ? (
135+ { userName != 'rimane' || userName != 'riri' ? (
136136 < span >
137137 { ' ' }
138138 Welcome back, < span className = 'text-fluo capitalize' > { userName } </ span > { ' ' }
@@ -154,24 +154,25 @@ export function Dashboard() {
154154 </ h1 >
155155
156156 { /* action buttons */ }
157- < div className = 'flex flex-wrap justify-around lg:flex-col gap-4 sm:justify-end items-end font-jetBrain' >
157+ < div className = 'flex flex-wrap flex-col w-full sm:w-[150px] sm:flex-row justify-around lg:flex-col gap-4 sm:justify-end items-end font-jetBrain' >
158158 < button
159159 type = 'button'
160160 onClick = { openModal }
161- className = 'rounded-lg bg-alice min-w-[145px] flex justify-center items-center gap-2 px-4 py-2 text-sm font-medium text-navy hover:bg-alice/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75' >
162- < span > Add income </ span > < BsCurrencyExchange />
161+ className = 'rounded-lg bg-alice min-w-[145px] w-full sm:w-auto flex justify-center items-center gap-2 px-4 py-2 text-sm font-medium text-navy hover:bg-alice/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75' >
162+ < span > Income </ span > < BsCurrencyExchange />
163163 </ button >
164164 < button
165165 type = 'button'
166166 onClick = { toggleBudgetForm }
167- className = 'rounded-lg bg-alice min-w-[145px] flex justify-center items-center gap-2 px-4 py-2 text-sm font-medium text-navy hover:bg-alice/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75' >
168- < span > Add Budget</ span > < BsCalculator />
167+ className = 'rounded-lg bg-alice min-w-[145px] w-full sm:w-auto flex justify-center items-center gap-2 px-4 py-2 text-sm font-medium text-navy hover:bg-alice/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75' >
168+ < span > Budget</ span > < BsCalculator />
169169 </ button >
170170 < button
171171 type = 'button'
172+ disabled = { ! budgets || budgets . length < 1 }
172173 onClick = { toggleExpenseForm }
173- className = 'rounded-lg bg-alice min-w-[145px] flex justify-center items-center gap-2 px-4 py-2 text-sm font-medium text-navy hover:bg-alice/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75' >
174- < span > Add Expense</ span > < BsCartCheck />
174+ className = 'rounded-lg bg-alice min-w-[145px] w-full sm:w-auto flex justify-center items-center gap-2 px-4 py-2 text-sm font-medium text-navy hover:bg-alice/80 focus:outline-none focus-visible:ring-2 focus-visible:ring-white/75' >
175+ < span > Expense</ span > < BsCartCheck />
175176 </ button >
176177 </ div >
177178
0 commit comments