Skip to content

Commit

Permalink
Update add button style
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Nov 16, 2023
1 parent ea44b7e commit 410ac1a
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ function AccountList({

const budgetedAccounts = accounts.filter(account => account.offbudget === 0);
const offbudgetAccounts = accounts.filter(account => account.offbudget === 1);
const noBackgroundColorStyle = {
backgroundColor: 'transparent',
color: 'white',
};

// If there are no accounts, show a helpful message
if (accounts.length === 0) {
Expand All @@ -185,17 +189,12 @@ function AccountList({
<Button
type="bare"
style={{
backgroundColor: 'transparent',
paddingLeft: 12,
paddingRight: 12,
color: 'white',
}}
activeStyle={{
color: 'white',
}}
hoveredStyle={{
color: 'white',
...noBackgroundColorStyle,
}}
activeStyle={noBackgroundColorStyle}
hoveredStyle={noBackgroundColorStyle}
onClick={onAddAccount}
>
<Add width={20} height={20} />
Expand Down

0 comments on commit 410ac1a

Please sign in to comment.