diff --git a/src/components/icons.tsx b/src/components/icons.tsx index 1e0d585..0ae1fdc 100644 --- a/src/components/icons.tsx +++ b/src/components/icons.tsx @@ -39,7 +39,7 @@ import { Goal, Trash, Ungroup, - Upload, + Import, Users, ListCollapse, Wallet, @@ -94,7 +94,7 @@ export const Icons = { WalletCards: WalletCards, StretchHorizontal: StretchHorizontal, Menu: TableProperties, - Upload: Upload, + Import: Import, FileText: FileText, XCircle: XCircle, ScrollText: ScrollText, diff --git a/src/pages/activity/activity-page.tsx b/src/pages/activity/activity-page.tsx index 4c329c1..8b324ab 100644 --- a/src/pages/activity/activity-page.tsx +++ b/src/pages/activity/activity-page.tsx @@ -65,9 +65,9 @@ const ActivityPage = () => {
- diff --git a/src/pages/activity/components/activity-form.tsx b/src/pages/activity/components/activity-form.tsx index 5905804..e4db610 100644 --- a/src/pages/activity/components/activity-form.tsx +++ b/src/pages/activity/components/activity-form.tsx @@ -369,7 +369,7 @@ const AssetActivityFields = ({ defaultAssetId }: AssetActivityFieldsProps) => { Shares - + @@ -382,7 +382,7 @@ const AssetActivityFields = ({ defaultAssetId }: AssetActivityFieldsProps) => { Price - + @@ -395,7 +395,7 @@ const AssetActivityFields = ({ defaultAssetId }: AssetActivityFieldsProps) => { Fee - + diff --git a/src/pages/activity/components/ticker-search.tsx b/src/pages/activity/components/ticker-search.tsx index 837c49a..731f7fc 100644 --- a/src/pages/activity/components/ticker-search.tsx +++ b/src/pages/activity/components/ticker-search.tsx @@ -44,10 +44,13 @@ function TickerSearchInput({ selectedResult, defaultValue, onSelectResult }: Sea const tickers = data?.sort((a, b) => b.score - a.score); return ( - + 0) } + )} + > ) : ( <> - + Drag and drop your CSV file here @@ -212,7 +212,7 @@ export const ActivityImportForm = ({ onSuccess, onError }: ActivityImportFormPro ) : ( <> - + Import activities )} diff --git a/src/pages/activity/import/import-validation-alert.tsx b/src/pages/activity/import/import-validation-alert.tsx index 9aa8ab0..3f45b7c 100644 --- a/src/pages/activity/import/import-validation-alert.tsx +++ b/src/pages/activity/import/import-validation-alert.tsx @@ -70,7 +70,7 @@ const ValidationAlert: React.FC = ({ ) : ( <> - + Confirm Import )} diff --git a/src/pages/holdings/components/income-dashboard.tsx b/src/pages/holdings/components/income-dashboard.tsx index b09f751..9d72e74 100644 --- a/src/pages/holdings/components/income-dashboard.tsx +++ b/src/pages/holdings/components/income-dashboard.tsx @@ -35,8 +35,8 @@ export function IncomeDashboard() { const totalIncome = incomeSummary.total_income; const dividendIncome = incomeSummary.by_type['DIVIDEND'] || 0; const interestIncome = incomeSummary.by_type['INTEREST'] || 0; - const dividendPercentage = (dividendIncome / totalIncome) * 100; - const interestPercentage = (interestIncome / totalIncome) * 100; + const dividendPercentage = (dividendIncome / totalIncome) * 100 || 0; + const interestPercentage = (interestIncome / totalIncome) * 100 || 0; // Filter out interest and only keep dividend income for top stocks const topDividendStocks = Object.entries(incomeSummary.by_symbol)