Skip to content

Commit

Permalink
removed Reconcile option from Account menu
Browse files Browse the repository at this point in the history
  • Loading branch information
vincenzo committed Oct 17, 2024
1 parent 9ab2f38 commit bf75d56
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions packages/desktop-client/src/components/accounts/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,6 @@ export function AccountHeader({
setMenuOpen(false);
onMenuSelect(item);
}}
onReconcile={onReconcile}
onClose={() => setMenuOpen(false)}
/>
</Popover>
</View>
Expand Down Expand Up @@ -550,29 +548,16 @@ function AccountMenu({
canShowBalances,
showCleared,
showReconciled,
onClose,
isSorted,
onReconcile,
onMenuSelect,
}) {
const { t } = useTranslation();
const [tooltip, setTooltip] = useState('default');
const syncServerStatus = useSyncServerStatus();

return tooltip === 'reconcile' ? (
<ReconcileMenu
account={account}
onClose={onClose}
onReconcile={onReconcile}
/>
) : (
return (
<Menu
onMenuSelect={item => {
if (item === 'reconcile') {
setTooltip('reconcile');
} else {
onMenuSelect(item);
}
onMenuSelect(item);
}}
items={[
isSorted && {
Expand All @@ -598,7 +583,6 @@ function AccountMenu({
: t('Show reconciled transactions'),
},
{ name: 'export', text: t('Export') },
{ name: 'reconcile', text: t('Reconcile') },
account &&
!account.closed &&
(canSync
Expand Down

0 comments on commit bf75d56

Please sign in to comment.